Skip to content

Commit ee6770d

Browse files
kasaldscho
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 b84c6db commit ee6770d

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
@@ -305,7 +305,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and no .gitm
305305
(
306306
cd sub &&
307307
rm -f .git &&
308-
cp -R -P -p ../.git/modules/sub .git &&
308+
cp -a ../.git/modules/sub .git &&
309309
GIT_WORK_TREE=. git config --unset core.worktree
310310
) &&
311311
mkdir mod &&
@@ -328,7 +328,7 @@ test_expect_success 'git mv moves a submodule with a .git directory and .gitmodu
328328
(
329329
cd sub &&
330330
rm -f .git &&
331-
cp -R -P -p ../.git/modules/sub .git &&
331+
cp -a ../.git/modules/sub .git &&
332332
GIT_WORK_TREE=. git config --unset core.worktree
333333
) &&
334334
mkdir mod &&

0 commit comments

Comments
 (0)