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 | |
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>
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | dgit-badcommit-fixup | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 4a13463..003b00e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ dgit (2.16.2~) unstable; urgency=medium dgit-badcommit-fixup: * Fix crash when running for 2nd time in bare repo. + * In --check mode, exit with status 2 if things are not fine. -- 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; } |