Do not put automatic merge message after signed-off-by line.
'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>
This commit is contained in:
@ -129,6 +129,9 @@ then
|
|||||||
elif test "$use_commit" != ""
|
elif test "$use_commit" != ""
|
||||||
then
|
then
|
||||||
git-cat-file commit "$use_commit" | sed -e '1,/^$/d'
|
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
|
fi | git-stripspace >"$GIT_DIR"/COMMIT_EDITMSG
|
||||||
|
|
||||||
case "$signoff" in
|
case "$signoff" in
|
||||||
@ -144,9 +147,6 @@ t)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -f "$GIT_DIR/MERGE_HEAD" ]; then
|
if [ -f "$GIT_DIR/MERGE_HEAD" ]; then
|
||||||
|
|
||||||
test -f "$GIT_DIR/MERGE_MSG" && cat "$GIT_DIR/MERGE_MSG"
|
|
||||||
|
|
||||||
echo "#"
|
echo "#"
|
||||||
echo "# It looks like your may be committing a MERGE."
|
echo "# It looks like your may be committing a MERGE."
|
||||||
echo "# If this is not correct, please remove the file"
|
echo "# If this is not correct, please remove the file"
|
||||||
|
Reference in New Issue
Block a user