Enable ref log creation in git checkout -b.
[gitweb.git] / git-commit.sh
index 6ef1a9dedc89af10865ed114458df88617bb5ca9..a4b0a907404f84581503d62011e5e82ecf50e715 100755 (executable)
@@ -676,7 +676,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