Code

Merge git://git.bogomips.org/git-svn
authorJunio C Hamano <gitster@pobox.com>
Fri, 9 Oct 2009 09:53:46 +0000 (02:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Oct 2009 09:53:46 +0000 (02:53 -0700)
* git://git.bogomips.org/git-svn:
  git-svn: Avoid spurious errors when rewriteRoot is used.

git-svn.perl

index e0ec258e335ceb88e97f749e22f997a4f699eb8b..ab65d688fe3f180adaff0264be06ae1e010f8229 100755 (executable)
@@ -603,8 +603,15 @@ sub cmd_dcommit {
                                          "\nBefore dcommitting";
                                }
                                if ($url_ ne $expect_url) {
-                                       fatal "URL mismatch after rebase: ",
-                                             "$url_ != $expect_url";
+                                       if ($url_ eq $gs->metadata_url) {
+                                               print
+                                                 "Accepting rewritten URL:",
+                                                 " $url_\n";
+                                       } else {
+                                               fatal
+                                                 "URL mismatch after rebase:",
+                                                 " $url_ != $expect_url";
+                                       }
                                }
                                if ($uuid_ ne $uuid) {
                                        fatal "uuid mismatch after rebase: ",