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 <bdwalton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ben Walton committed
Oct 8, 2012 at 09:08 UTC
d4a7ffaae3fa3302a73e00dab01b80c4bfd17cdb
3 files changed
+3
-3
t/t5400-send-pack.sh
+1
-1
@@ -159,7 +159,7 @@ test_expect_success 'receive-pack runs auto-gc in remote repo' '
159
git commit -a -m "Second commit" &&
160
git repack
161
) &&
162
- cp -a parent child &&
162
+ cp -R parent child &&
163
(
164
# Set the child to auto-pack if more than one pack exists
165
cd child &&
t/t5550-http-fetch.sh
+1
-1
@@ -22,7 +22,7 @@ test_expect_success 'setup repository' '
22
'
23
24
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" &&
26
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
27
git config core.bare true &&
28
mkdir -p hooks &&
t/t5800-remote-helpers.sh
+1
-1
@@ -76,7 +76,7 @@ test_expect_success 'pushing to local repo' '
76
# git-remote-testgit, but is too slow to leave in for general use.
77
: test_expect_success 'racily pushing to local repo' '
78
test_when_finished "rm -rf server2 localclone2" &&
79
- cp -a server server2 &&
79
+ cp -R server server2 &&
80
git clone "testgit::${PWD}/server2" localclone2 &&
81
(cd localclone2 &&
82
echo content >>file &&