summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-06-16 13:43:53 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-06-16 22:40:13 +0100
commit1f7c6ee4c561d4010b6c0dd824ecf42eb0f9613b (patch)
tree7863fb749f68c8de035f3ac18b3f906f14a6b2b9
parent4cdfc872d003b1e78aa25ffacee66f8f1b0d82c1 (diff)
exit status: Fix git-debrebase to use Debian::Dgit::ExitStatus
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xgit-debrebase7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-debrebase b/git-debrebase
index 7c8d54d..bf9af61 100755
--- a/git-debrebase
+++ b/git-debrebase
@@ -18,6 +18,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+END { $? = $Debian::Dgit::ExitStatus::desired // -1; };
+use Debian::Dgit::ExitStatus;
+
use strict;
use Debian::Dgit qw(:DEFAULT :playground);
@@ -39,7 +42,7 @@ our $us = qw(git-debrebase);
sub badusage ($) {
my ($m) = @_;
print STDERR "bad usage: $m\n";
- exit 12;
+ finish 12;
}
sub cfg ($;$) {
@@ -1582,3 +1585,5 @@ if (!@ARGV || $opt_defaultcmd_interactive || $ARGV[0] =~ m{^-}) {
$cmdfn or badusage "unknown git-debrebase sub-operation $cmd";
$cmdfn->();
}
+
+finish 0;