chiark / gitweb /
dgit-badcommit-fixup: Fix crash when running for 2nd time in bare repo.
[dgit.git] / dgit-badcommit-fixup
index a9a8f60f88aa94d7e459e968a091f826abcd955d..935f5dff982ba6bddd21abbc5255691103a97238 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;