Merge part of 'js/fmt-patch' for RFC2822 dates into 'sp/reflog'
[gitweb.git] / git-am.sh
index 33f208cb0b7a7d7bad264b41443a966a567156ff..25c95c24fde6894544f4b53439abd030008e757f 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -447,7 +447,7 @@ do
        parent=$(git-rev-parse --verify HEAD) &&
        commit=$(git-commit-tree $tree -p $parent <"$dotest/final-commit") &&
        echo Committed: $commit &&
-       git-update-ref HEAD $commit $parent ||
+       git-update-ref -m "am: $SUBJECT" HEAD $commit $parent ||
        stop_here $this
 
        if test -x "$GIT_DIR"/hooks/post-applypatch