diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-07 13:23:58 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-07 13:24:02 +0000 |
commit | 9ceee050983cec221d82053c3e6f6bbbd9ca5f2c (patch) | |
tree | 82ae673e7eb81272f8cab9524d88a8a98dc22109 /dgit-badcommit-fixup | |
parent | 7a3361bb3c0dab34d001bcda1c56ec42aec6e8b3 (diff) |
dgit-badcommit-fixup; In --check mode, exit status 2 if things are not fine
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit-badcommit-fixup')
-rwxr-xr-x | dgit-badcommit-fixup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index 935f5df..0a1ebcf 100755 --- a/dgit-badcommit-fixup +++ b/dgit-badcommit-fixup @@ -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 $!; +} else { + print STDERR "found work to do, exiting status 2\n"; + exit 2; } |