@@ -45,13 +45,13 @@ test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
4545
4646name=' try a deep --rmdir with a commit'
4747test_expect_success " $name " '
48- git checkout -f -b mybranch ${remotes_git_svn} &&
48+ git checkout -f -b mybranch remotes/git-svn &&
4949 mv dir/a/b/c/d/e/file dir/file &&
5050 cp dir/file file &&
5151 git update-index --add --remove dir/a/b/c/d/e/file dir/file file &&
5252 git commit -m "$name" &&
5353 git svn set-tree --find-copies-harder --rmdir \
54- ${remotes_git_svn} ..mybranch &&
54+ remotes/git-svn ..mybranch &&
5555 svn_cmd up "$SVN_TREE" &&
5656 test -d "$SVN_TREE"/dir && test ! -d "$SVN_TREE"/dir/a'
5757
@@ -65,37 +65,37 @@ test_expect_success "$name" "
6565 git update-index --add dir/file/file &&
6666 git commit -m '$name ' &&
6767 test_must_fail git svn set-tree --find-copies-harder --rmdir \
68- ${remotes_git_svn} ..mybranch
68+ remotes/git-svn ..mybranch
6969"
7070
7171
7272name=' detect node change from directory to file #1'
7373test_expect_success " $name " '
7474 rm -rf dir "$GIT_DIR"/index &&
75- git checkout -f -b mybranch2 ${remotes_git_svn} &&
75+ git checkout -f -b mybranch2 remotes/git-svn &&
7676 mv bar/zzz zzz &&
7777 rm -rf bar &&
7878 mv zzz bar &&
7979 git update-index --remove -- bar/zzz &&
8080 git update-index --add -- bar &&
8181 git commit -m "$name" &&
8282 test_must_fail git svn set-tree --find-copies-harder --rmdir \
83- ${remotes_git_svn} ..mybranch2
83+ remotes/git-svn ..mybranch2
8484'
8585
8686
8787name=' detect node change from file to directory #2'
8888test_expect_success " $name " '
8989 rm -f "$GIT_DIR"/index &&
90- git checkout -f -b mybranch3 ${remotes_git_svn} &&
90+ git checkout -f -b mybranch3 remotes/git-svn &&
9191 rm bar/zzz &&
9292 git update-index --remove bar/zzz &&
9393 mkdir bar/zzz &&
9494 echo yyy > bar/zzz/yyy &&
9595 git update-index --add bar/zzz/yyy &&
9696 git commit -m "$name" &&
9797 git svn set-tree --find-copies-harder --rmdir \
98- ${remotes_git_svn} ..mybranch3 &&
98+ remotes/git-svn ..mybranch3 &&
9999 svn_cmd up "$SVN_TREE" &&
100100 test -d "$SVN_TREE"/bar/zzz &&
101101 test -e "$SVN_TREE"/bar/zzz/yyy
@@ -104,27 +104,27 @@ test_expect_success "$name" '
104104name=' detect node change from directory to file #2'
105105test_expect_success " $name " '
106106 rm -f "$GIT_DIR"/index &&
107- git checkout -f -b mybranch4 ${remotes_git_svn} &&
107+ git checkout -f -b mybranch4 remotes/git-svn &&
108108 rm -rf dir &&
109109 git update-index --remove -- dir/file &&
110110 touch dir &&
111111 echo asdf > dir &&
112112 git update-index --add -- dir &&
113113 git commit -m "$name" &&
114114 test_must_fail git svn set-tree --find-copies-harder --rmdir \
115- ${remotes_git_svn} ..mybranch4
115+ remotes/git-svn ..mybranch4
116116'
117117
118118
119119name=' remove executable bit from a file'
120120test_expect_success POSIXPERM " $name " '
121121 rm -f "$GIT_DIR"/index &&
122- git checkout -f -b mybranch5 ${remotes_git_svn} &&
122+ git checkout -f -b mybranch5 remotes/git-svn &&
123123 chmod -x exec.sh &&
124124 git update-index exec.sh &&
125125 git commit -m "$name" &&
126126 git svn set-tree --find-copies-harder --rmdir \
127- ${remotes_git_svn} ..mybranch5 &&
127+ remotes/git-svn ..mybranch5 &&
128128 svn_cmd up "$SVN_TREE" &&
129129 test ! -x "$SVN_TREE"/exec.sh'
130130
@@ -135,7 +135,7 @@ test_expect_success POSIXPERM "$name" '
135135 git update-index exec.sh &&
136136 git commit -m "$name" &&
137137 git svn set-tree --find-copies-harder --rmdir \
138- ${remotes_git_svn} ..mybranch5 &&
138+ remotes/git-svn ..mybranch5 &&
139139 svn_cmd up "$SVN_TREE" &&
140140 test -x "$SVN_TREE"/exec.sh'
141141
@@ -147,7 +147,7 @@ test_expect_success SYMLINKS "$name" '
147147 git update-index exec.sh &&
148148 git commit -m "$name" &&
149149 git svn set-tree --find-copies-harder --rmdir \
150- ${remotes_git_svn} ..mybranch5 &&
150+ remotes/git-svn ..mybranch5 &&
151151 svn_cmd up "$SVN_TREE" &&
152152 test -h "$SVN_TREE"/exec.sh'
153153
@@ -159,7 +159,7 @@ test_expect_success POSIXPERM,SYMLINKS "$name" '
159159 git update-index --add file exec-2.sh &&
160160 git commit -m "$name" &&
161161 git svn set-tree --find-copies-harder --rmdir \
162- ${remotes_git_svn} ..mybranch5 &&
162+ remotes/git-svn ..mybranch5 &&
163163 svn_cmd up "$SVN_TREE" &&
164164 test -x "$SVN_TREE"/file &&
165165 test -h "$SVN_TREE"/exec-2.sh'
@@ -172,7 +172,7 @@ test_expect_success POSIXPERM,SYMLINKS "$name" '
172172 git update-index exec-2.sh &&
173173 git commit -m "$name" &&
174174 git svn set-tree --find-copies-harder --rmdir \
175- ${remotes_git_svn} ..mybranch5 &&
175+ remotes/git-svn ..mybranch5 &&
176176 svn_cmd up "$SVN_TREE" &&
177177 test -f "$SVN_TREE"/exec-2.sh &&
178178 test ! -h "$SVN_TREE"/exec-2.sh &&
@@ -194,7 +194,7 @@ GIT_SVN_ID=alt
194194export GIT_SVN_ID
195195test_expect_success " $name " \
196196 ' git svn init "$svnrepo" && git svn fetch &&
197- git rev-list --pretty=raw ${remotes_git_svn} | grep ^tree | uniq > a &&
197+ git rev-list --pretty=raw remotes/git-svn | grep ^tree | uniq > a &&
198198 git rev-list --pretty=raw remotes/alt | grep ^tree | uniq > b &&
199199 test_cmp a b'
200200
@@ -219,15 +219,15 @@ test_expect_success POSIXPERM,SYMLINKS "$name" "test_cmp a expected"
219219
220220test_expect_success ' exit if remote refs are ambigious' "
221221 git config --add svn-remote.svn.fetch \
222- bar:refs/${remotes_git_svn} &&
222+ bar:refs/remotes/git-svn &&
223223 test_must_fail git svn migrate
224224"
225225
226226test_expect_success ' exit if init-ing a would clobber a URL' '
227227 svnadmin create "${PWD}/svnrepo2" &&
228228 svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
229229 git config --unset svn-remote.svn.fetch \
230- "^bar:refs/${remotes_git_svn} $" &&
230+ "^bar:refs/remotes/git-svn $" &&
231231 test_must_fail git svn init "${svnrepo}2/bar"
232232 '
233233
@@ -237,7 +237,7 @@ test_expect_success \
237237 git config --get svn-remote.svn.fetch \
238238 "^bar:refs/remotes/bar$" &&
239239 git config --get svn-remote.svn.fetch \
240- "^:refs/${remotes_git_svn} $"
240+ "^:refs/remotes/git-svn $"
241241 '
242242
243243test_expect_success ' dcommit $rev does not clobber current branch' '
0 commit comments