summaryrefslogtreecommitdiff
path: root/t/t7001-mv.sh
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2014-04-11 08:24:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-11 20:19:00 (GMT)
commit00764ca10e0b55b21853fe3f41d688254cfaec08 (patch)
tree65599053c9b6e8564c0cf1db46eb540707dde836 /t/t7001-mv.sh
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d (diff)
downloadgit-00764ca10e0b55b21853fe3f41d688254cfaec08.zip
git-00764ca10e0b55b21853fe3f41d688254cfaec08.tar.gz
git-00764ca10e0b55b21853fe3f41d688254cfaec08.tar.bz2
test: fix t7001 cp to use POSIX options
Since 11502468 and 04c1ee57 (both first appearing in v1.8.5), the t7001-mv test has used "cp -a" to perform a copy in several of the tests. However, the "-a" option is not required for a POSIX cp utility and some platforms' cp utilities do not support it. The POSIX equivalent of -a is -R -P -p. Change "cp -a" to "cp -R -P -p" so that the t7001-mv test works on systems with a cp utility that only implements the POSIX required set of options and not the "-a" option. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7001-mv.sh')
-rwxr-xr-xt/t7001-mv.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index 3bfdfed..9727e79 100755
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
@@ -307,7 +307,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and no .gitm
(
cd sub &&
rm -f .git &&
- cp -a ../.git/modules/sub .git &&
+ cp -R -P -p ../.git/modules/sub .git &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
mkdir mod &&
@@ -330,7 +330,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and .gitmodu
(
cd sub &&
rm -f .git &&
- cp -a ../.git/modules/sub .git &&
+ cp -R -P -p ../.git/modules/sub .git &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
mkdir mod &&