summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e6ae4a)
raw | patch | inline | side by side (parent: 8e6ae4a)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 2 Nov 2005 06:01:28 +0000 (22:01 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 2 Nov 2005 06:01:28 +0000 (22:01 -0800) |
'git-commit -s' after a failed automerge inserted the automerge
message in a wrong place. The signed-off-by line should come
last.
Signed-off-by: Junio C Hamano <junkio@cox.net>
message in a wrong place. The signed-off-by line should come
last.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | patch | blob | history |
diff --git a/git-commit.sh b/git-commit.sh
index 10651d87d087b6e8d656799d00384669e376fca3..daf90f1e58242f069e2fde5f44677f60a98e2a0c 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
elif test "$use_commit" != ""
then
git-cat-file commit "$use_commit" | sed -e '1,/^$/d'
+elif test -f "$GIT_DIR/MERGE_HEAD" && test -f "$GIT_DIR/MERGE_MSG"
+then
+ cat "$GIT_DIR/MERGE_MSG"
fi | git-stripspace >"$GIT_DIR"/COMMIT_EDITMSG
case "$signoff" in
esac
if [ -f "$GIT_DIR/MERGE_HEAD" ]; then
-
- test -f "$GIT_DIR/MERGE_MSG" && cat "$GIT_DIR/MERGE_MSG"
-
echo "#"
echo "# It looks like your may be committing a MERGE."
echo "# If this is not correct, please remove the file"