Skip to content

Commit c2a0ce3

Browse files
kasalkblees
authored andcommitted
Revert "test: fix t7001 cp to use POSIX options"
This reverts commit 00764ca, as our ancient version of "cp" has problems about the "new" POSIX option "-P" (yields exit code 1).
1 parent 20ba112 commit c2a0ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7001-mv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and no .gitm
308308
(
309309
cd sub &&
310310
rm -f .git &&
311-
cp -R -P -p ../.git/modules/sub .git &&
311+
cp -a ../.git/modules/sub .git &&
312312
GIT_WORK_TREE=. git config --unset core.worktree
313313
) &&
314314
mkdir mod &&
@@ -331,7 +331,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and .gitmodu
331331
(
332332
cd sub &&
333333
rm -f .git &&
334-
cp -R -P -p ../.git/modules/sub .git &&
334+
cp -a ../.git/modules/sub .git &&
335335
GIT_WORK_TREE=. git config --unset core.worktree
336336
) &&
337337
mkdir mod &&

0 commit comments

Comments
 (0)