File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ test_expect_success 'rm of a conflicted populated submodule with a .git director
474
474
git submodule update &&
475
475
(cd submod &&
476
476
rm .git &&
477
- cp -a ../.git/modules/sub .git &&
477
+ cp -R ../.git/modules/sub .git &&
478
478
GIT_WORK_TREE=. git config --unset core.worktree
479
479
) &&
480
480
test_must_fail git merge conflict2 &&
@@ -508,7 +508,7 @@ test_expect_success 'rm of a populated submodule with a .git directory fails eve
508
508
git submodule update &&
509
509
(cd submod &&
510
510
rm .git &&
511
- cp -a ../.git/modules/sub .git &&
511
+ cp -R ../.git/modules/sub .git &&
512
512
GIT_WORK_TREE=. git config --unset core.worktree
513
513
) &&
514
514
test_must_fail git rm submod &&
@@ -606,7 +606,7 @@ test_expect_success 'rm of a populated nested submodule with a nested .git direc
606
606
git submodule update --recursive &&
607
607
(cd submod/subsubmod &&
608
608
rm .git &&
609
- cp -a ../../.git/modules/sub/modules/sub .git &&
609
+ cp -R ../../.git/modules/sub/modules/sub .git &&
610
610
GIT_WORK_TREE=. git config --unset core.worktree
611
611
) &&
612
612
test_must_fail git rm submod &&
Original file line number Diff line number Diff line change 12
12
test_done
13
13
fi
14
14
15
- # We override svnrdump by placing a symlink to the svnrdump-emulator in .
16
- export PATH=" $HOME :$PATH "
17
- ln -sf $GIT_BUILD_DIR /contrib/svn-fe/svnrdump_sim.py " $HOME /svnrdump"
15
+ # Override svnrdump with our simulator
16
+ PATH=" $HOME :$PATH "
17
+ export PATH PYTHON_PATH GIT_BUILD_DIR
18
+
19
+ write_script " $HOME /svnrdump" << \EOF
20
+ exec "$PYTHON_PATH " "$GIT_BUILD_DIR /contrib/svn-fe/svnrdump_sim.py" "$@ "
21
+ EOF
18
22
19
23
init_git () {
20
24
rm -fr .git &&
You can’t perform that action at this time.
0 commit comments