From: Tuomas Suutari Date: Wed, 24 Feb 2010 18:09:01 +0000 (+0200) Subject: git-svn: Fix merge detecting with rewrite-root X-Git-Tag: v1.7.1-rc0~70^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf60fff8f1e814e1603328141b68686337a5a0b5;p=git.git git-svn: Fix merge detecting with rewrite-root Detecting of merges from svn:mergeinfo or svk merge tickets failed with rewrite-root option. This fixes it. Signed-off-by: Tuomas Suutari Acked-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index 1a26843f4..aceeca5a9 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2998,7 +2998,7 @@ sub find_extra_svk_parents { for my $ticket ( @tickets ) { my ($uuid, $path, $rev) = split /:/, $ticket; if ( $uuid eq $self->ra_uuid ) { - my $url = $self->rewrite_root || $self->{url}; + my $url = $self->{url}; my $repos_root = $url; my $branch_from = $path; $branch_from =~ s{^/}{}; @@ -3206,7 +3206,7 @@ sub find_extra_svn_parents { # are now marked as merge, we can add the tip as a parent. my @merges = split "\n", $mergeinfo; my @merge_tips; - my $url = $self->rewrite_root || $self->{url}; + my $url = $self->{url}; my $uuid = $self->ra_uuid; my %ranges; for my $merge ( @merges ) {