git-svn: allow 'init' to act as multi-init
multi-init is now just an alias that requires -T/-t/-b; all options that 'init' can now accept. This will hopefully simplify usage and reduce typing. Also, allow the --shared option in 'init' to take an optional argument now that 'git-init --shared' supports an optional argument. Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
@ -40,7 +40,7 @@ test_expect_success 'initialize old-style (v0) git-svn layout' "
|
||||
"
|
||||
|
||||
test_expect_success 'initialize a multi-repository repo' "
|
||||
git-svn multi-init $svnrepo -T trunk -t tags -b branches &&
|
||||
git-svn init $svnrepo -T trunk -t tags -b branches &&
|
||||
git-config --get-all svn-remote.svn.fetch > fetch.out &&
|
||||
grep '^trunk:refs/remotes/trunk$' fetch.out &&
|
||||
test -n \"\`git-config --get svn-remote.svn.branches \
|
||||
@ -72,7 +72,7 @@ test_expect_success 'multi-fetch works on partial urls + paths' "
|
||||
refs/remotes/\$j\`\" ||exit 1; done; done
|
||||
"
|
||||
|
||||
test_expect_success 'migrate --minimize on old multi-inited layout' "
|
||||
test_expect_success 'migrate --minimize on old inited layout' "
|
||||
git config --unset-all svn-remote.svn.fetch &&
|
||||
git config --unset-all svn-remote.svn.url &&
|
||||
rm -rf $GIT_DIR/svn &&
|
||||
|
||||
Reference in New Issue
Block a user