Code

[PATCH] Introduce a 'die' function.
[git.git] / git-commit.sh
index 741444aa06f68ec59430e2d6a9e3fc56c56f5965..d8bfc3c254929d3fb7a8aa702b4f4a86edefe8f0 100755 (executable)
@@ -158,7 +158,7 @@ if [ ! -r "$GIT_DIR/HEAD" ]; then
        PARENTS=""
 else
        if [ -f "$GIT_DIR/MERGE_HEAD" ]; then
-               PARENTS="-p HEAD -p MERGE_HEAD"
+               PARENTS="-p HEAD "`sed -e 's/^/-p /' "$GIT_DIR/MERGE_HEAD"`
        fi
        if test "$use_commit" != ""
        then