From 1b7e543a6e2f156536a3cf227f9da1029bba6265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9vai=20Tam=C3=A1s?= Date: Thu, 12 Feb 2009 00:14:02 +0100 Subject: [PATCH] git-svn: Fix for rewriteRoot URL containing username. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the new svn root URL given with the svn-remote..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 Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- git-svn.perl | 1 + 1 file changed, 1 insertion(+) diff --git a/git-svn.perl b/git-svn.perl index 001a1d8eff..83cb36f065 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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};