chiark / gitweb /
dgit-badcommit-fixup: Skip our own output refs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 20:23:30 +0000 (20:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 20:23:30 +0000 (20:23 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit-badcommit-fixup

index d1bca74..a761eb3 100755 (executable)
@@ -226,6 +226,7 @@ foreach my $rline (split /\n/, $refs) {
        $org_rewrite_map = $obj;
        continue;
     }
+    next if $refname =~ m{^refs/dgit-(?:badcommit|badfixuptest)/};
     my $rewrite;
     if ($type eq 'commit') {
        $rewrite = rewrite_commit($obj);