Commit 39728835 authored by Matthias Putz's avatar Matthias Putz

fixed exit code

parent db4445c9
......@@ -519,7 +519,7 @@ def _Main(argv):
argv = [sys.executable] + argv
try:
argv.insert(0, __file__)
subprocess.call(argv)
result = subprocess.call(argv)
except OSError as e:
print('fatal: cannot restart repo after upgrade', file=sys.stderr)
print('fatal: %s' % e, file=sys.stderr)
......
......@@ -39,7 +39,7 @@ REPO_REV = 'master'
# limitations under the License.
# increment this whenever we make important changes to this script
VERSION = (1, 19, 1)
VERSION = (1, 19, 2)
# increment this if the MAINTAINER_KEYS block is modified
KEYRING_VERSION = (1, 1)
......@@ -698,7 +698,7 @@ def main(orig_args):
me.extend(orig_args)
me.extend(extra_args)
try:
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