X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-applypatch.sh;h=e4b09472e1fa27a6431b431572af7353c4f0a9b2;hb=ae448e3854d8b6e7e37aa88fa3917f5dd97f3210;hp=e8ba34a0ad4a466083c8462cc038de9d8ad6a4ab;hpb=b0d3e9baaa16c805ef941e8f26d55fb23f091ef5;p=git.git diff --git a/git-applypatch.sh b/git-applypatch.sh index e8ba34a0..e4b09472 100755 --- a/git-applypatch.sh +++ b/git-applypatch.sh @@ -14,7 +14,7 @@ USAGE=' []' . git-sh-setup -case "$#" in 3|4) usage ;; esac +case "$#" in 3|4) ;; *) usage ;; esac final=.dotest/final-commit ## @@ -204,7 +204,7 @@ echo Wrote tree $tree parent=$(git-rev-parse --verify HEAD) && commit=$(git-commit-tree $tree -p $parent <"$final") || exit 1 echo Committed: $commit -git-update-ref HEAD $commit $parent || exit +git-update-ref -m "applypatch: $SUBJECT" HEAD $commit $parent || exit if test -x "$GIT_DIR"/hooks/post-applypatch then