@matheusbsbs / matheus-bagliano / commits / 1b7e543a6e
Fork 0

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://username@example.com/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 <devait@mailbox.sk> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dévai Tamás committed Feb 12, 2009 at 00:14 UTC 1b7e543a6e2f156536a3cf227f9da1029bba6265
1 file changed +1
git-svn.perl
+1
@@ -1693,6 +1693,7 @@ sub find_by_url { # repos_root and, path are optional
1693 my $prefix = '';
1694 if ($rwr) {
1695 $z = $rwr;
1696 + remove_username($z);
1697 } elsif (defined $svm) {
1698 $z = $svm->{source};
1699 $prefix = $svm->{replace};