Skip to content

Commit be1fce6

Browse files
john-caigitster
authored andcommitted
t9100-git-svn-basic: modernize test format
Some tests still use the old format with four spaces indentation. Standardize the tests to the new format with tab indentation. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a3b98b commit be1fce6

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

t/t9100-git-svn-basic.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test_expect_success 'git svn help works anywhere' '
2121
'
2222

2323
test_expect_success \
24-
'initialize git svn' '
24+
'initialize git svn' '
2525
mkdir import &&
2626
(
2727
cd import &&
@@ -38,9 +38,9 @@ test_expect_success \
3838
rm -rf import &&
3939
git svn init "$svnrepo"'
4040

41-
test_expect_success \
42-
'import an SVN revision into git' \
43-
'git svn fetch'
41+
test_expect_success 'import an SVN revision into git' '
42+
git svn fetch
43+
'
4444

4545
test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
4646

@@ -233,27 +233,26 @@ test_expect_success POSIXPERM,SYMLINKS "$name" '
233233
'
234234

235235
test_expect_success 'exit if remote refs are ambigious' '
236-
git config --add svn-remote.svn.fetch \
236+
git config --add svn-remote.svn.fetch \
237237
bar:refs/remotes/git-svn &&
238238
test_must_fail git svn migrate
239239
'
240240

241241
test_expect_success 'exit if init-ing a would clobber a URL' '
242-
svnadmin create "${PWD}/svnrepo2" &&
243-
svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
244-
git config --unset svn-remote.svn.fetch \
242+
svnadmin create "${PWD}/svnrepo2" &&
243+
svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
244+
git config --unset svn-remote.svn.fetch \
245245
"^bar:refs/remotes/git-svn$" &&
246246
test_must_fail git svn init "${svnrepo}2/bar"
247247
'
248248

249-
test_expect_success \
250-
'init allows us to connect to another directory in the same repo' '
251-
git svn init --minimize-url -i bar "$svnrepo/bar" &&
252-
git config --get svn-remote.svn.fetch \
253-
"^bar:refs/remotes/bar$" &&
254-
git config --get svn-remote.svn.fetch \
255-
"^:refs/remotes/git-svn$"
256-
'
249+
test_expect_success 'init allows us to connect to another directory in the same repo' '
250+
git svn init --minimize-url -i bar "$svnrepo/bar" &&
251+
git config --get svn-remote.svn.fetch \
252+
"^bar:refs/remotes/bar$" &&
253+
git config --get svn-remote.svn.fetch \
254+
"^:refs/remotes/git-svn$"
255+
'
257256

258257
test_expect_success 'dcommit $rev does not clobber current branch' '
259258
git svn fetch -i bar &&

0 commit comments

Comments
 (0)