Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: strip off leading slashes on --trunk argument
[gitweb.git]
/
git-svn.perl
diff --git
a/git-svn.perl
b/git-svn.perl
index 09c4ca56f0c9af9c6ff49d3b3a197a8e30602520..80ab45065e987d16f592476bfb824485a88958a2 100755
(executable)
--- a/
git-svn.perl
+++ b/
git-svn.perl
@@
-963,6
+963,7
@@
sub cmd_multi_init {
}
do_git_init_db();
if (defined $_trunk) {
+ $_trunk =~ s#^/+##;
my $trunk_ref = 'refs/remotes/' . $_prefix . 'trunk';
# try both old-style and new-style lookups:
my $gs_trunk = eval { Git::SVN->new($trunk_ref) };