@@ -44,13 +44,13 @@ test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
4444
4545name=' try a deep --rmdir with a commit'
4646test_expect_success " $name " '
47- git checkout -f -b mybranch remotes/git-svn &&
47+ git checkout -f -b mybranch ${remotes_git_svn} &&
4848 mv dir/a/b/c/d/e/file dir/file &&
4949 cp dir/file file &&
5050 git update-index --add --remove dir/a/b/c/d/e/file dir/file file &&
5151 git commit -m "$name" &&
5252 git-svn set-tree --find-copies-harder --rmdir \
53- remotes/git-svn ..mybranch &&
53+ ${remotes_git_svn} ..mybranch &&
5454 svn up "$SVN_TREE" &&
5555 test -d "$SVN_TREE"/dir && test ! -d "$SVN_TREE"/dir/a'
5656
@@ -64,60 +64,60 @@ test_expect_success "$name" "
6464 git update-index --add dir/file/file &&
6565 git commit -m '$name ' &&
6666 test_must_fail git-svn set-tree --find-copies-harder --rmdir \
67- remotes/git-svn ..mybranch" || true
67+ ${remotes_git_svn} ..mybranch" || true
6868
6969
7070name=' detect node change from directory to file #1'
7171test_expect_success " $name " '
7272 rm -rf dir "$GIT_DIR"/index &&
73- git checkout -f -b mybranch2 remotes/git-svn &&
73+ git checkout -f -b mybranch2 ${remotes_git_svn} &&
7474 mv bar/zzz zzz &&
7575 rm -rf bar &&
7676 mv zzz bar &&
7777 git update-index --remove -- bar/zzz &&
7878 git update-index --add -- bar &&
7979 git commit -m "$name" &&
8080 test_must_fail git-svn set-tree --find-copies-harder --rmdir \
81- remotes/git-svn ..mybranch2' || true
81+ ${remotes_git_svn} ..mybranch2' || true
8282
8383
8484name=' detect node change from file to directory #2'
8585test_expect_success " $name " '
8686 rm -f "$GIT_DIR"/index &&
87- git checkout -f -b mybranch3 remotes/git-svn &&
87+ git checkout -f -b mybranch3 ${remotes_git_svn} &&
8888 rm bar/zzz &&
8989 git update-index --remove bar/zzz &&
9090 mkdir bar/zzz &&
9191 echo yyy > bar/zzz/yyy &&
9292 git update-index --add bar/zzz/yyy &&
9393 git commit -m "$name" &&
9494 test_must_fail git-svn set-tree --find-copies-harder --rmdir \
95- remotes/git-svn ..mybranch3' || true
95+ ${remotes_git_svn} ..mybranch3' || true
9696
9797
9898name=' detect node change from directory to file #2'
9999test_expect_success " $name " '
100100 rm -f "$GIT_DIR"/index &&
101- git checkout -f -b mybranch4 remotes/git-svn &&
101+ git checkout -f -b mybranch4 ${remotes_git_svn} &&
102102 rm -rf dir &&
103103 git update-index --remove -- dir/file &&
104104 touch dir &&
105105 echo asdf > dir &&
106106 git update-index --add -- dir &&
107107 git commit -m "$name" &&
108108 test_must_fail git-svn set-tree --find-copies-harder --rmdir \
109- remotes/git-svn ..mybranch4' || true
109+ ${remotes_git_svn} ..mybranch4' || true
110110
111111
112112name=' remove executable bit from a file'
113113test_expect_success " $name " '
114114 rm -f "$GIT_DIR"/index &&
115- git checkout -f -b mybranch5 remotes/git-svn &&
115+ git checkout -f -b mybranch5 ${remotes_git_svn} &&
116116 chmod -x exec.sh &&
117117 git update-index exec.sh &&
118118 git commit -m "$name" &&
119119 git-svn set-tree --find-copies-harder --rmdir \
120- remotes/git-svn ..mybranch5 &&
120+ ${remotes_git_svn} ..mybranch5 &&
121121 svn up "$SVN_TREE" &&
122122 test ! -x "$SVN_TREE"/exec.sh'
123123
@@ -128,7 +128,7 @@ test_expect_success "$name" '
128128 git update-index exec.sh &&
129129 git commit -m "$name" &&
130130 git-svn set-tree --find-copies-harder --rmdir \
131- remotes/git-svn ..mybranch5 &&
131+ ${remotes_git_svn} ..mybranch5 &&
132132 svn up "$SVN_TREE" &&
133133 test -x "$SVN_TREE"/exec.sh'
134134
@@ -140,7 +140,7 @@ test_expect_success "$name" '
140140 git update-index exec.sh &&
141141 git commit -m "$name" &&
142142 git-svn set-tree --find-copies-harder --rmdir \
143- remotes/git-svn ..mybranch5 &&
143+ ${remotes_git_svn} ..mybranch5 &&
144144 svn up "$SVN_TREE" &&
145145 test -L "$SVN_TREE"/exec.sh'
146146
@@ -152,7 +152,7 @@ test_expect_success "$name" '
152152 git update-index --add bar/zzz exec-2.sh &&
153153 git commit -m "$name" &&
154154 git-svn set-tree --find-copies-harder --rmdir \
155- remotes/git-svn ..mybranch5 &&
155+ ${remotes_git_svn} ..mybranch5 &&
156156 svn up "$SVN_TREE" &&
157157 test -x "$SVN_TREE"/bar/zzz &&
158158 test -L "$SVN_TREE"/exec-2.sh'
@@ -165,7 +165,7 @@ test_expect_success "$name" '
165165 git update-index exec-2.sh &&
166166 git commit -m "$name" &&
167167 git-svn set-tree --find-copies-harder --rmdir \
168- remotes/git-svn ..mybranch5 &&
168+ ${remotes_git_svn} ..mybranch5 &&
169169 svn up "$SVN_TREE" &&
170170 test -f "$SVN_TREE"/exec-2.sh &&
171171 test ! -L "$SVN_TREE"/exec-2.sh &&
@@ -191,7 +191,7 @@ GIT_SVN_ID=alt
191191export GIT_SVN_ID
192192test_expect_success " $name " \
193193 ' git-svn init "$svnrepo" && git-svn fetch &&
194- git rev-list --pretty=raw remotes/git-svn | grep ^tree | uniq > a &&
194+ git rev-list --pretty=raw ${remotes_git_svn} | grep ^tree | uniq > a &&
195195 git rev-list --pretty=raw remotes/alt | grep ^tree | uniq > b &&
196196 test_cmp a b'
197197
@@ -215,15 +215,15 @@ test_expect_success "$name" "test_cmp a expected"
215215
216216test_expect_success ' exit if remote refs are ambigious' "
217217 git config --add svn-remote.svn.fetch \
218- bar:refs/remotes/git-svn &&
218+ bar:refs/${remotes_git_svn} &&
219219 test_must_fail git-svn migrate
220220"
221221
222222test_expect_success ' exit if init-ing a would clobber a URL' '
223223 svnadmin create "${PWD}/svnrepo2" &&
224224 svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
225225 git config --unset svn-remote.svn.fetch \
226- "^bar:refs/remotes/git-svn $" &&
226+ "^bar:refs/${remotes_git_svn} $" &&
227227 test_must_fail git-svn init "${svnrepo}2/bar"
228228 '
229229
@@ -233,7 +233,7 @@ test_expect_success \
233233 git config --get svn-remote.svn.fetch \
234234 "^bar:refs/remotes/bar$" &&
235235 git config --get svn-remote.svn.fetch \
236- "^:refs/remotes/git-svn $"
236+ "^:refs/${remotes_git_svn} $"
237237 '
238238
239239test_expect_success ' able to dcommit to a subdirectory' "
0 commit comments