Skip to content

Commit d4a7ffa

Browse files
bdwaltongitster
authored andcommitted
tests: "cp -a" is a GNUism
These tests just want a bit-for-bit identical copy; they do not need even -H (there is no symbolic link involved) nor -p (there is no funny permission or ownership issues involved). Just use "cp -R" instead. Signed-off-by: Ben Walton <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9376c86 commit d4a7ffa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

t/t5400-send-pack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
159159
git commit -a -m "Second commit" &&
160160
git repack
161161
) &&
162-
cp -a parent child &&
162+
cp -R parent child &&
163163
(
164164
# Set the child to auto-pack if more than one pack exists
165165
cd child &&

t/t5550-http-fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test_expect_success 'setup repository' '
2222
'
2323

2424
test_expect_success 'create http-accessible bare repository with loose objects' '
25-
cp -a .git "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
25+
cp -R .git "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
2626
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
2727
git config core.bare true &&
2828
mkdir -p hooks &&

t/t5800-remote-helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test_expect_success 'pushing to local repo' '
7676
# git-remote-testgit, but is too slow to leave in for general use.
7777
: test_expect_success 'racily pushing to local repo' '
7878
test_when_finished "rm -rf server2 localclone2" &&
79-
cp -a server server2 &&
79+
cp -R server server2 &&
8080
git clone "testgit::${PWD}/server2" localclone2 &&
8181
(cd localclone2 &&
8282
echo content >>file &&

0 commit comments

Comments
 (0)