@matheusbsbs / matheus-bagliano / commits / 150d38c4f3
Fork 0

git svn: branch/tag commands detect username in URLs

svn+ssh:// repositories often have userinfo embedded in the URL which were stripped out of the "git-svn-id:" trailers. Since the SVN::Client::copy function takes userinfo into account when matching URLs for SVN repositories, we need to retrieve the full URL with embedded userinfo in it to avoid mismatched URLs. Tested-by: Florian Köberle <florian@fkoeberle.de> Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Dec 22, 2009 at 22:40 UTC 150d38c4f3733b38c2c212469afa162a55e0e99d
1 file changed +2 -1
git-svn.perl
+2 -1
@@ -663,7 +663,8 @@ sub cmd_branch {
663 }
664 $head ||= 'HEAD';
665
666 - my ($src, $rev, undef, $gs) = working_head_info($head);
666 + my (undef, $rev, undef, $gs) = working_head_info($head);
667 + my $src = $gs->full_url;
668
669 my $remote = Git::SVN::read_all_remotes()->{$gs->{repo_id}};
670 my $allglobs = $remote->{ $_tag ? 'tags' : 'branches' };