X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=git-commit.sh;h=6dd04fd3675fd2559f983581a9d5f7eddee31e55;hb=HEAD;hp=15482d21b31dadaf53bf831be2de4d6f8b269b33;hpb=31262627109476c529418132e0820687003fb1fe;p=git.git diff --git a/git-commit.sh b/git-commit.sh index 15482d21..6dd04fd3 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -713,7 +713,8 @@ then rm -f "$TMP_INDEX" fi && commit=$(cat "$GIT_DIR"/COMMIT_MSG | git-commit-tree $tree $PARENTS) && - git-update-ref HEAD $commit $current && + rlogm=$(sed -e 1q "$GIT_DIR"/COMMIT_MSG) && + git-update-ref -m "commit: $rlogm" HEAD $commit $current && rm -f -- "$GIT_DIR/MERGE_HEAD" && if test -f "$NEXT_INDEX" then