From: Junio C Hamano Date: Fri, 26 Jan 2007 09:28:22 GMT Subject: [PATCH] git-merge: make it usable as the first class UI again. Message-ID: <7v4pqe16ix.fsf@assigned-by-dhcp.cox.net> reflog wants to have a short-and-sweet single line message, but its set_reflog_action was slurping the whole command line arguments. When given a multi-line commit message from the command line, reflog code refused to update the ref with the resulting commit. Signed-off-by: Junio C Hamano --- * When pull threw huge merge message, it has already set the reflog action on its own so this breakage was hidden. Also because most of the time people did not specify -m message (or use the old-style HEAD ) from the command line, nobody seems to have noticed this. git-merge.sh | 2 +- git-pull.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletions(-) diff --git a/git-merge.sh b/git-merge.sh index 7b59026..91909b7 100755 --- a/git-merge.sh +++ b/git-merge.sh @@ -7,7 +7,7 @@ USAGE='[-n] [--no-commit] [--squash] [-s ] [-m=] &2 "Clever... Updating tracking branch while pulling from yourself." + echo >&2 + fi +fi + orig_head=$(git-rev-parse --verify HEAD 2>/dev/null) git-fetch --update-head-ok "$@" || exit 1 -- 1.5.0.rc2.g8a816