Dévai Tamás  committed 1b7e543

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://';), 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 <>
Acked-by: Eric Wong <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 88a667f
  • Branches master
  • Tags v1.6.2-rc1

Comments (0)

Files changed (1)

File git-svn.perl

 			my $prefix = '';
 			if ($rwr) {
 				$z = $rwr;
+				remove_username($z);
 			} elsif (defined $svm) {
 				$z = $svm->{source};
 				$prefix = $svm->{replace};