We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6339f67 + b1a954a commit 0925c02Copy full SHA for 0925c02
git-svn.perl
@@ -963,6 +963,7 @@ sub cmd_multi_init {
963
}
964
do_git_init_db();
965
if (defined $_trunk) {
966
+ $_trunk =~ s#^/+##;
967
my $trunk_ref = 'refs/remotes/' . $_prefix . 'trunk';
968
# try both old-style and new-style lookups:
969
my $gs_trunk = eval { Git::SVN->new($trunk_ref) };
@@ -2054,6 +2055,9 @@ sub new {
2054
2055
"\":$ref_id\$\" in config\n";
2056
($self->{path}, undef) = split(/\s*:\s*/, $fetch);
2057
2058
+ $self->{path} =~ s{/+}{/}g;
2059
+ $self->{path} =~ s{\A/}{};
2060
+ $self->{path} =~ s{/\z}{};
2061
$self->{url} = command_oneline('config', '--get',
2062
"svn-remote.$repo_id.url") or
2063
die "Failed to read \"svn-remote.$repo_id.url\" in config\n";
0 commit comments