33# Copyright (c) 2006 Eric Wong
44#
55
6- test_description=' git- svn basic tests'
6+ test_description=' git svn basic tests'
77GIT_SVN_LC_ALL=${LC_ALL:- $LANG }
88
99case " $GIT_SVN_LC_ALL " in
1717
1818. ./lib-git-svn.sh
1919
20- say ' define NO_SVN_TESTS to skip git- svn tests'
20+ say ' define NO_SVN_TESTS to skip git svn tests'
2121
2222test_expect_success \
2323 ' initialize git-svn' '
@@ -34,11 +34,11 @@ test_expect_success \
3434 svn import -m "import for git-svn" . "$svnrepo" >/dev/null &&
3535 cd .. &&
3636 rm -rf import &&
37- git- svn init "$svnrepo"'
37+ git svn init "$svnrepo"'
3838
3939test_expect_success \
4040 ' import an SVN revision into git' \
41- ' git- svn fetch'
41+ ' git svn fetch'
4242
4343test_expect_success " checkout from svn" ' svn co "$svnrepo" "$SVN_TREE"'
4444
@@ -49,7 +49,7 @@ test_expect_success "$name" '
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" &&
52- git- svn set-tree --find-copies-harder --rmdir \
52+ git svn set-tree --find-copies-harder --rmdir \
5353 ${remotes_git_svn}..mybranch &&
5454 svn up "$SVN_TREE" &&
5555 test -d "$SVN_TREE"/dir && test ! -d "$SVN_TREE"/dir/a'
@@ -63,7 +63,7 @@ test_expect_success "$name" "
6363 git update-index --remove dir/file &&
6464 git update-index --add dir/file/file &&
6565 git commit -m '$name ' &&
66- test_must_fail git- svn set-tree --find-copies-harder --rmdir \
66+ test_must_fail git svn set-tree --find-copies-harder --rmdir \
6767 ${remotes_git_svn} ..mybranch" || true
6868
6969
@@ -77,7 +77,7 @@ test_expect_success "$name" '
7777 git update-index --remove -- bar/zzz &&
7878 git update-index --add -- bar &&
7979 git commit -m "$name" &&
80- test_must_fail git- svn set-tree --find-copies-harder --rmdir \
80+ test_must_fail git svn set-tree --find-copies-harder --rmdir \
8181 ${remotes_git_svn}..mybranch2' || true
8282
8383
@@ -91,7 +91,7 @@ test_expect_success "$name" '
9191 echo yyy > bar/zzz/yyy &&
9292 git update-index --add bar/zzz/yyy &&
9393 git commit -m "$name" &&
94- test_must_fail git- svn set-tree --find-copies-harder --rmdir \
94+ test_must_fail git svn set-tree --find-copies-harder --rmdir \
9595 ${remotes_git_svn}..mybranch3' || true
9696
9797
@@ -105,7 +105,7 @@ test_expect_success "$name" '
105105 echo asdf > dir &&
106106 git update-index --add -- dir &&
107107 git commit -m "$name" &&
108- test_must_fail git- svn set-tree --find-copies-harder --rmdir \
108+ test_must_fail git svn set-tree --find-copies-harder --rmdir \
109109 ${remotes_git_svn}..mybranch4' || true
110110
111111
@@ -116,7 +116,7 @@ test_expect_success "$name" '
116116 chmod -x exec.sh &&
117117 git update-index exec.sh &&
118118 git commit -m "$name" &&
119- git- svn set-tree --find-copies-harder --rmdir \
119+ git svn set-tree --find-copies-harder --rmdir \
120120 ${remotes_git_svn}..mybranch5 &&
121121 svn up "$SVN_TREE" &&
122122 test ! -x "$SVN_TREE"/exec.sh'
@@ -127,7 +127,7 @@ test_expect_success "$name" '
127127 chmod +x exec.sh &&
128128 git update-index exec.sh &&
129129 git commit -m "$name" &&
130- git- svn set-tree --find-copies-harder --rmdir \
130+ git svn set-tree --find-copies-harder --rmdir \
131131 ${remotes_git_svn}..mybranch5 &&
132132 svn up "$SVN_TREE" &&
133133 test -x "$SVN_TREE"/exec.sh'
@@ -139,7 +139,7 @@ test_expect_success "$name" '
139139 ln -s bar/zzz exec.sh &&
140140 git update-index exec.sh &&
141141 git commit -m "$name" &&
142- git- svn set-tree --find-copies-harder --rmdir \
142+ git svn set-tree --find-copies-harder --rmdir \
143143 ${remotes_git_svn}..mybranch5 &&
144144 svn up "$SVN_TREE" &&
145145 test -L "$SVN_TREE"/exec.sh'
@@ -151,7 +151,7 @@ test_expect_success "$name" '
151151 ln -s bar/zzz exec-2.sh &&
152152 git update-index --add bar/zzz exec-2.sh &&
153153 git commit -m "$name" &&
154- git- svn set-tree --find-copies-harder --rmdir \
154+ git svn set-tree --find-copies-harder --rmdir \
155155 ${remotes_git_svn}..mybranch5 &&
156156 svn up "$SVN_TREE" &&
157157 test -x "$SVN_TREE"/bar/zzz &&
@@ -164,7 +164,7 @@ test_expect_success "$name" '
164164 cp help exec-2.sh &&
165165 git update-index exec-2.sh &&
166166 git commit -m "$name" &&
167- git- svn set-tree --find-copies-harder --rmdir \
167+ git svn set-tree --find-copies-harder --rmdir \
168168 ${remotes_git_svn}..mybranch5 &&
169169 svn up "$SVN_TREE" &&
170170 test -f "$SVN_TREE"/exec-2.sh &&
180180 echo '# hello' >> exec-2.sh &&
181181 git update-index exec-2.sh &&
182182 git commit -m 'éï∏' &&
183- git- svn set-tree HEAD"
183+ git svn set-tree HEAD"
184184 unset LC_ALL
185185else
186186 say " UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL )"
@@ -190,7 +190,7 @@ name='test fetch functionality (svn => git) with alternate GIT_SVN_ID'
190190GIT_SVN_ID=alt
191191export GIT_SVN_ID
192192test_expect_success " $name " \
193- ' git- svn init "$svnrepo" && git- svn fetch &&
193+ ' git svn init "$svnrepo" && git svn fetch &&
194194 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'
@@ -216,52 +216,52 @@ test_expect_success "$name" "test_cmp a expected"
216216test_expect_success ' exit if remote refs are ambigious' "
217217 git config --add svn-remote.svn.fetch \
218218 bar:refs/${remotes_git_svn} &&
219- test_must_fail git- svn migrate
219+ 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 \
226226 "^bar:refs/${remotes_git_svn}$" &&
227- test_must_fail git- svn init "${svnrepo}2/bar"
227+ test_must_fail git svn init "${svnrepo}2/bar"
228228 '
229229
230230test_expect_success \
231231 ' init allows us to connect to another directory in the same repo' '
232- git- svn init --minimize-url -i bar "$svnrepo/bar" &&
232+ git svn init --minimize-url -i bar "$svnrepo/bar" &&
233233 git config --get svn-remote.svn.fetch \
234234 "^bar:refs/remotes/bar$" &&
235235 git config --get svn-remote.svn.fetch \
236236 "^:refs/${remotes_git_svn}$"
237237 '
238238
239239test_expect_success ' able to dcommit to a subdirectory' "
240- git- svn fetch -i bar &&
240+ git svn fetch -i bar &&
241241 git checkout -b my-bar refs/remotes/bar &&
242242 echo abc > d &&
243243 git update-index --add d &&
244244 git commit -m '/bar/d should be in the log' &&
245- git- svn dcommit -i bar &&
245+ git svn dcommit -i bar &&
246246 test -z \"\` git diff refs/heads/my-bar refs/remotes/bar\`\" &&
247247 mkdir newdir &&
248248 echo new > newdir/dir &&
249249 git update-index --add newdir/dir &&
250250 git commit -m 'add a new directory' &&
251- git- svn dcommit -i bar &&
251+ git svn dcommit -i bar &&
252252 test -z \"\` git diff refs/heads/my-bar refs/remotes/bar\`\" &&
253253 echo foo >> newdir/dir &&
254254 git update-index newdir/dir &&
255255 git commit -m 'modify a file in new directory' &&
256- git- svn dcommit -i bar &&
256+ git svn dcommit -i bar &&
257257 test -z \"\` git diff refs/heads/my-bar refs/remotes/bar\`\"
258258 "
259259
260260test_expect_success ' able to set-tree to a subdirectory' "
261261 echo cba > d &&
262262 git update-index d &&
263263 git commit -m 'update /bar/d' &&
264- git- svn set-tree -i bar HEAD &&
264+ git svn set-tree -i bar HEAD &&
265265 test -z \"\` git diff refs/heads/my-bar refs/remotes/bar\`\"
266266 "
267267
0 commit comments