summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 946f5f7)
raw | patch | inline | side by side (parent: 946f5f7)
author | Fredrik Kuivinen <freku045@student.liu.se> | |
Sun, 25 Sep 2005 14:48:24 +0000 (16:48 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 25 Sep 2005 23:08:53 +0000 (16:08 -0700) |
If the working tree is dirty read-tree will fail, and we don't want an
ugly stack trace in that case. Also make sure we don't print stack
traces when we use 'die'.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
ugly stack trace in that case. Also make sure we don't print stack
traces when we use 'die'.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge-recursive.py | patch | blob | history |
diff --git a/git-merge-recursive.py b/git-merge-recursive.py
index 60e8b21b3b640868b027ba909a4221a5d1bdbf90..689f91430be5d3ed777f0e371025545450c3ec59 100755 (executable)
--- a/git-merge-recursive.py
+++ b/git-merge-recursive.py
else:
updateArg = '-u'
- runProgram(['git-read-tree', updateArg, '-m', common, head, merge])
+ [out, code] = runProgram(['git-read-tree', updateArg, '-m', common, head, merge], returnCode = True)
+ if code != 0:
+ die('git-read-tree:', out)
+
cleanMerge = True
[tree, code] = runProgram('git-write-tree', returnCode=True)
print ''
except:
- traceback.print_exc(None, sys.stderr)
- sys.exit(2)
+ if isinstance(sys.exc_info()[1], SystemExit):
+ raise
+ else:
+ traceback.print_exc(None, sys.stderr)
+ sys.exit(2)
if clean:
sys.exit(0)