Commit 223328e9 authored by Ian Jackson's avatar Ian Jackson

exit status: Fix dgit-badcommit-fixup to use Debian::Dgit::ExitStatus

Signed-off-by: Ian Jackson's avatarIan Jackson <ijackson@chiark.greenend.org.uk>
parent 1f7c6ee4
......@@ -19,6 +19,8 @@
#
# 4. Run the mirror script to push changes, if necessary.
END { $? = $Debian::Dgit::ExitStatus::desired // -1; };
use Debian::Dgit::ExitStatus;
use strict;
......@@ -283,7 +285,7 @@ filter_updates();
if (!@updates) {
print Dumper(\%count), "all is well - nothing to do\n";
exit 0;
finish 0;
}
#print Dumper(\@updates);
......@@ -325,5 +327,7 @@ if ($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;
finish 2;
}
finish 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment