chiark / gitweb /
dgit-badcommit-fixup; In --check mode, exit status 2 if things are not fine
[dgit.git] / dgit-badcommit-fixup
index 935f5dff982ba6bddd21abbc5255691103a97238..0a1ebcf61ef208a3b26f36a145ab24cfd53120a7 100755 (executable)
@@ -298,4 +298,7 @@ if ($real >= 0) {
     print "old values saved in refs/dgit-badcommit/\n" or die $!;
 } elsif ($real == 0) {
     print "testing output saved in refs/dgit-badfixuptest/\n" or die $!;
     print "old values saved in refs/dgit-badcommit/\n" or die $!;
 } elsif ($real == 0) {
     print "testing output saved in refs/dgit-badfixuptest/\n" or die $!;
+} else {
+    print STDERR "found work to do, exiting status 2\n";
+    exit 2;
 }
 }