3 # Copyright (c) 2009 Eric Wong
5 test_description='git svn initial master branch is "trunk" if possible'
8 test_expect_success 'setup test repository' '
11 svn_cmd import -m trunk i "$svnrepo/trunk" &&
12 svn_cmd import -m b/a i "$svnrepo/branches/a" &&
13 svn_cmd import -m b/b i "$svnrepo/branches/b"
16 test_expect_success 'git svn clone --stdlayout sets up trunk as master' '
17 git svn clone -s "$svnrepo" g &&
20 test x`git rev-parse --verify refs/remotes/trunk^0` = \
21 x`git rev-parse --verify refs/heads/master^0`