summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d37fd03)
raw | patch | inline | side by side (parent: d37fd03)
author | Fredrik Kuivinen <freku045@student.liu.se> | |
Sun, 29 Jan 2006 12:16:08 +0000 (13:16 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 29 Jan 2006 23:00:42 +0000 (15:00 -0800) |
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 56c3641abbe872bd44ec6c7745e6bc3705874869..b17c8e595ec87a13679635c0d112b15fb6df6e52 100755 (executable)
--- a/git-merge-recursive.py
+++ b/git-merge-recursive.py
orig = runProgram(['git-unpack-file', oSha]).rstrip()
src1 = runProgram(['git-unpack-file', aSha]).rstrip()
src2 = runProgram(['git-unpack-file', bSha]).rstrip()
- [out, code] = runProgram(['merge',
- '-L', branch1Name + '/' + aPath,
- '-L', 'orig/' + oPath,
- '-L', branch2Name + '/' + bPath,
- src1, orig, src2], returnCode=True)
+ try:
+ [out, code] = runProgram(['merge',
+ '-L', branch1Name + '/' + aPath,
+ '-L', 'orig/' + oPath,
+ '-L', branch2Name + '/' + bPath,
+ src1, orig, src2], returnCode=True)
+ except ProgramError, e:
+ print >>sys.stderr, e
+ die("Failed to execute 'merge'. merge(1) is used as the "
+ "file-level merge tool. Is 'merge' in your path?")
sha = runProgram(['git-hash-object', '-t', 'blob', '-w',
src1]).rstrip()