Commit aef087d9 by Matthias Putz

Fix: returning exit code from subprocess call

parent 13508fdb
......@@ -525,7 +525,7 @@ def _Main(argv):
argv.extend(rce.extra_args)
try:
# os.execv(__file__, argv)
subprocess.call([sys.executable] + argv)
result = subprocess.call([sys.executable] + argv)
except OSError as e:
print('fatal: cannot restart repo after upgrade', file=sys.stderr)
print('fatal: %s' % e, file=sys.stderr)
......
......@@ -805,7 +805,7 @@ def main(orig_args):
me.extend(extra_args)
try:
# os.execv(sys.executable, me)
subprocess.call(me)
sys.exit(subprocess.call(me))
except OSError as e:
_print("fatal: unable to start %s" % repo_main, file=sys.stderr)
_print("fatal: %s" % e, file=sys.stderr)
......
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