Skip to content

Commit 150d38c

Browse files
author
Eric Wong
committed
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 <[email protected]> Signed-off-by: Eric Wong <[email protected]>
1 parent 129a5a6 commit 150d38c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-svn.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ sub cmd_branch {
663663
}
664664
$head ||= 'HEAD';
665665

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;
667668

668669
my $remote = Git::SVN::read_all_remotes()->{$gs->{repo_id}};
669670
my $allglobs = $remote->{ $_tag ? 'tags' : 'branches' };

0 commit comments

Comments
 (0)