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 <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -21,7 +21,7 @@ test_expect_success 'git svn help works anywhere' '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success \
|
||||||
'initialize git svn' '
|
'initialize git svn' '
|
||||||
mkdir import &&
|
mkdir import &&
|
||||||
(
|
(
|
||||||
cd import &&
|
cd import &&
|
||||||
@ -38,9 +38,9 @@ test_expect_success \
|
|||||||
rm -rf import &&
|
rm -rf import &&
|
||||||
git svn init "$svnrepo"'
|
git svn init "$svnrepo"'
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success 'import an SVN revision into git' '
|
||||||
'import an SVN revision into git' \
|
git svn fetch
|
||||||
'git svn fetch'
|
'
|
||||||
|
|
||||||
test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
|
test_expect_success "checkout from svn" 'svn co "$svnrepo" "$SVN_TREE"'
|
||||||
|
|
||||||
@ -233,27 +233,26 @@ test_expect_success POSIXPERM,SYMLINKS "$name" '
|
|||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'exit if remote refs are ambigious' '
|
test_expect_success 'exit if remote refs are ambigious' '
|
||||||
git config --add svn-remote.svn.fetch \
|
git config --add svn-remote.svn.fetch \
|
||||||
bar:refs/remotes/git-svn &&
|
bar:refs/remotes/git-svn &&
|
||||||
test_must_fail git svn migrate
|
test_must_fail git svn migrate
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'exit if init-ing a would clobber a URL' '
|
test_expect_success 'exit if init-ing a would clobber a URL' '
|
||||||
svnadmin create "${PWD}/svnrepo2" &&
|
svnadmin create "${PWD}/svnrepo2" &&
|
||||||
svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
|
svn mkdir -m "mkdir bar" "${svnrepo}2/bar" &&
|
||||||
git config --unset svn-remote.svn.fetch \
|
git config --unset svn-remote.svn.fetch \
|
||||||
"^bar:refs/remotes/git-svn$" &&
|
"^bar:refs/remotes/git-svn$" &&
|
||||||
test_must_fail git svn init "${svnrepo}2/bar"
|
test_must_fail git svn init "${svnrepo}2/bar"
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success 'init allows us to connect to another directory in the same repo' '
|
||||||
'init allows us to connect to another directory in the same repo' '
|
git svn init --minimize-url -i bar "$svnrepo/bar" &&
|
||||||
git svn init --minimize-url -i bar "$svnrepo/bar" &&
|
git config --get svn-remote.svn.fetch \
|
||||||
git config --get svn-remote.svn.fetch \
|
"^bar:refs/remotes/bar$" &&
|
||||||
"^bar:refs/remotes/bar$" &&
|
git config --get svn-remote.svn.fetch \
|
||||||
git config --get svn-remote.svn.fetch \
|
"^:refs/remotes/git-svn$"
|
||||||
"^:refs/remotes/git-svn$"
|
'
|
||||||
'
|
|
||||||
|
|
||||||
test_expect_success 'dcommit $rev does not clobber current branch' '
|
test_expect_success 'dcommit $rev does not clobber current branch' '
|
||||||
git svn fetch -i bar &&
|
git svn fetch -i bar &&
|
||||||
|
Reference in New Issue
Block a user