chiark / gitweb /
dgit-badcommit-fixup: Fix crash when running for 2nd time in bare repo.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jan 2017 13:23:28 +0000 (13:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jan 2017 13:23:29 +0000 (13:23 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit-badcommit-fixup

index fb10d5e..4a13463 100644 (file)
@@ -1,6 +1,7 @@
-dgit (2.17~) unstable; urgency=medium
+dgit (2.16.2~) unstable; urgency=medium
 
-  * 
+  dgit-badcommit-fixup: 
+  * Fix crash when running for 2nd time in bare repo.
 
  --
 
index a9a8f60..935f5df 100755 (executable)
@@ -231,7 +231,7 @@ foreach my $rline (split /\n/, $refs) {
        or die "$_ ?";
     if ($refname eq 'refs/dgit-rewrite/map') {
        $org_rewrite_map = $obj;
-       continue;
+       next;
     }
     next if $refname =~ m{^refs/dgit-(?:badcommit|badfixuptest)/};
     my $rewrite;