chiark / gitweb /
Allow only certain gitk exit codes as valid
[stgit] / stgit / commands / log.py
index c5f71a24509061cc81804145924a40b34416f2c6..52d55a531b0af6a5b32b3afc349f0b32c09cca3a 100644 (file)
@@ -141,6 +141,7 @@ def func(parser, options, args):
         raise CmdException, 'No changelog for patch "%s"' % name
 
     if options.graphical:
-        Run('gitk', log).discard_exitcode().run()
+        # discard the exit codes generated by SIGINT, SIGKILL, SIGTERM
+        Run('gitk', log).returns([0, -2, -9, -15]).run()
     else:
         show_log(log, options)