-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn: initial "master" points to trunk if possible
Since "trunk" is a convention for the main development branch in the SVN world, try to make that the master branch upon initial checkout if it exists. This is probably less surprising based on user requests. t9135 was the only test which relied on the previous behavior and thus needed to be modified. Signed-off-by: Eric Wong <normalperson@yhbt.net>
- Loading branch information
Eric Wong
committed
Aug 13, 2009
1 parent
6ffd781
commit b186a26
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2009 Eric Wong | ||
# | ||
test_description='git svn initial master branch is "trunk" if possible' | ||
. ./lib-git-svn.sh | ||
|
||
test_expect_success 'setup test repository' ' | ||
mkdir i && | ||
> i/a && | ||
svn_cmd import -m trunk i "$svnrepo/trunk" && | ||
svn_cmd import -m b/a i "$svnrepo/branches/a" && | ||
svn_cmd import -m b/b i "$svnrepo/branches/b" | ||
' | ||
|
||
test_expect_success 'git svn clone --stdlayout sets up trunk as master' ' | ||
git svn clone -s "$svnrepo" g && | ||
( | ||
cd g && | ||
test x`git rev-parse --verify refs/remotes/trunk^0` = \ | ||
x`git rev-parse --verify refs/heads/master^0` | ||
) | ||
' | ||
|
||
test_done |