chiark / gitweb /
dgit: Do not sometimes crash in quilt-fixup if git-debrebase missing
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 4 Oct 2018 00:57:19 +0000 (01:57 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 4 Oct 2018 15:33:23 +0000 (16:33 +0100)
Closes:#910221.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index beabcce..4cc5684 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -5715,7 +5715,10 @@ END
        if (act_local()) {
            debugcmd "+",@cmd;
            $!=0; $?=-1;
-           failedcmd @cmd if system @cmd and $?!=7*256;
+           failedcmd @cmd
+               if system @cmd
+               and not ($? == 7*256 or
+                        $? == -1 && $!==ENOENT);
        } else {
            dryrun_report @cmd;
        }