Skip to content

Commit c03c1f7

Browse files
angavrilovEric Wong
authored andcommitted
git-svn: Avoid spurious errors when rewriteRoot is used.
After doing a rebase, git-svn checks that the SVN URL is what it expects. However, it does not account for rewriteRoot, which is a legitimate way for the URL to change. This produces a lot of spurious errors. [ew: fixed line wrapping] Signed-off-by: Alexander Gavrilov <[email protected]> Acked-by: Eric Wong <[email protected]>
1 parent 8fd2cfa commit c03c1f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

git-svn.perl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,15 @@ sub cmd_dcommit {
603603
"\nBefore dcommitting";
604604
}
605605
if ($url_ ne $expect_url) {
606-
fatal "URL mismatch after rebase: ",
607-
"$url_ != $expect_url";
606+
if ($url_ eq $gs->metadata_url) {
607+
print
608+
"Accepting rewritten URL:",
609+
" $url_\n";
610+
} else {
611+
fatal
612+
"URL mismatch after rebase:",
613+
" $url_ != $expect_url";
614+
}
608615
}
609616
if ($uuid_ ne $uuid) {
610617
fatal "uuid mismatch after rebase: ",

0 commit comments

Comments
 (0)