From: Eric Wong Date: Wed, 23 Dec 2009 06:40:18 +0000 (-0800) Subject: git svn: branch/tag commands detect username in URLs X-Git-Tag: v1.6.6~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=150d38c4f3733b38c2c212469afa162a55e0e99d;p=git.git 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 Signed-off-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index dba0d12b0..650c9e5f0 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -663,7 +663,8 @@ sub cmd_branch { } $head ||= 'HEAD'; - my ($src, $rev, undef, $gs) = working_head_info($head); + my (undef, $rev, undef, $gs) = working_head_info($head); + my $src = $gs->full_url; my $remote = Git::SVN::read_all_remotes()->{$gs->{repo_id}}; my $allglobs = $remote->{ $_tag ? 'tags' : 'branches' };