Last change
on this file since 782 was 782, checked in by dmik, 11 years ago |
git: Merge version 2.0.0 from vendor to dmik branch.
|
File size:
607 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Copyright (c) 2009 Eric Wong
|
---|
4 | #
|
---|
5 | test_description='git svn initial master branch is "trunk" if possible'
|
---|
6 | . ./lib-git-svn.sh
|
---|
7 |
|
---|
8 | test_expect_success 'setup test repository' '
|
---|
9 | mkdir i &&
|
---|
10 | > i/a &&
|
---|
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"
|
---|
14 | '
|
---|
15 |
|
---|
16 | test_expect_success 'git svn clone --stdlayout sets up trunk as master' '
|
---|
17 | git svn clone -s "$svnrepo" g &&
|
---|
18 | (
|
---|
19 | cd g &&
|
---|
20 | test x`git rev-parse --verify refs/remotes/origin/trunk^0` = \
|
---|
21 | x`git rev-parse --verify refs/heads/master^0`
|
---|
22 | )
|
---|
23 | '
|
---|
24 |
|
---|
25 | test_done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.