Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t3600: Avoid "cp -a", which is a GNUism
author
Junio C Hamano
<gitster@pobox.com>
Wed, 19 Dec 2012 02:47:50 +0000
(18:47 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 19 Dec 2012 15:46:44 +0000
(07:46 -0800)
With
d4a7ffa
(tests: "cp -a" is a GNUism, 2012-10-08), we got rid of
most of them, but the ones in a topic that was still in flight were
missed.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3600-rm.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ecd3e2f
)
diff --git
a/t/t3600-rm.sh
b/t/t3600-rm.sh
index 06f63848eab384ae33eacd1fb46d5dc048143721..37bf5f13b07a632cb8e96e865a75b51f1b7844aa 100755
(executable)
--- a/
t/t3600-rm.sh
+++ b/
t/t3600-rm.sh
@@
-474,7
+474,7
@@
test_expect_success 'rm of a conflicted populated submodule with a .git director
git submodule update &&
(cd submod &&
rm .git &&
git submodule update &&
(cd submod &&
rm .git &&
- cp -
a
../.git/modules/sub .git &&
+ cp -
R
../.git/modules/sub .git &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git merge conflict2 &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git merge conflict2 &&
@@
-508,7
+508,7
@@
test_expect_success 'rm of a populated submodule with a .git directory fails eve
git submodule update &&
(cd submod &&
rm .git &&
git submodule update &&
(cd submod &&
rm .git &&
- cp -
a
../.git/modules/sub .git &&
+ cp -
R
../.git/modules/sub .git &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git rm submod &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git rm submod &&
@@
-606,7
+606,7
@@
test_expect_success 'rm of a populated nested submodule with a nested .git direc
git submodule update --recursive &&
(cd submod/subsubmod &&
rm .git &&
git submodule update --recursive &&
(cd submod/subsubmod &&
rm .git &&
- cp -
a
../../.git/modules/sub/modules/sub .git &&
+ cp -
R
../../.git/modules/sub/modules/sub .git &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git rm submod &&
GIT_WORK_TREE=. git config --unset core.worktree
) &&
test_must_fail git rm submod &&