From: Eric Wong Date: Mon, 29 Aug 2011 00:45:44 +0000 (+0000) Subject: git-svn: fix fetch with moved path when using rewriteRoot X-Git-Tag: v1.7.7-rc1~30 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=85f022e9c124ffeda31a50cab878e1418d694d87;p=git.git git-svn: fix fetch with moved path when using rewriteRoot The matching step in commit 3235b7053c45a734c1cdf9b117bda68b7ced29c9 did not properly account for users of the "rewriteRoot" configuration parameter. ref: Suggested-by: H Krishnan Signed-off-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index 96f373f81..32792d3ef 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -3022,7 +3022,7 @@ sub other_gs { my (undef, $max_commit) = $gs->rev_map_max(1); last if (!$max_commit); my ($url) = ::cmt_metadata($max_commit); - last if ($url eq $gs->full_url); + last if ($url eq $gs->metadata_url); $ref_id .= '-'; } print STDERR "Initializing parent: $ref_id\n" unless $::_q > 1;