Merge branch 'km/avoid-cp-a'
authorJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2014 20:38:55 +0000 (13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2014 20:38:55 +0000 (13:38 -0700)
Portability fix.

* km/avoid-cp-a:
test: fix t7001 cp to use POSIX options

t/t7001-mv.sh
index 34fb1afbb32b67565d983d68ea78a969edf98e55..54d78079e83d7d02f69035d3bf3999084f61834a 100755 (executable)
@@ -308,7 +308,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 &&
@@ -331,7 +331,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 &&