git-svn: Fix for rewriteRoot URL containing username.
PATCH 1/1 git-svn: Fix for rewriteRoot URL containing username.
If the new svn root URL given with the svn-remote.<repo>.rewriteRoot config option (or by the --rewrite-root option to 'git svn init') contains a username (such as 'svn+ssh://[email protected]/repo'), find_by_url() cannot find the repository URL, because the URL contained in the commit message does have the username removed.
Signed-off-by Dévai Tamás <[email protected]>
--- git-svn.perl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
git-svn.perl +1 -0
@@ -1693,6 +1693,7 @@ sub find_by_url { # repos_root and, path are optional my $prefix = ''; if ($rwr) { $z = $rwr; + remove_username($z); } elsif (defined $svm) { $z = $svm->{source}; $prefix = $svm->{replace};
Signature · 1 line
1.6.1.2
Quoted 7 lines · Dévai Tamás
If the new svn root URL given with the svn-remote.<repo>.rewriteRoot config option (or by the --rewrite-root option to 'git svn init') contains a username (such as 'svn+ssh://[email protected]/repo'),
find_by_url()cannot find the repository URL, because the URL contained in the commit message does have the username removed.Signed-off-by Dévai Tamás <[email protected]>
Thanks Dévai,
Acked-by Eric Wong <[email protected]>
Quoted 18 lines
--- git-svn.perl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)git-svn.perl +1
-0@@ -1693,6 +1693,7 @@ sub find_by_url { # repos_root and, path are optional my $prefix = ''; if ($rwr) { $z = $rwr; + remove_username($z); } elsif (defined $svm) { $z = $svm->{source}; $prefix = $svm->{replace};Signature · 1 line
1.6.1.2