From: Michael Loeffler Date: Mon, 8 Jan 2007 19:23:13 +0000 (+0100) Subject: git-commit: do not fail to print the diffstat even if there is a file named HEAD X-Git-Tag: v1.5.0-rc1~51 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=521f9c4def9430526bfdfffdb8ed4c2f4166bece;p=git.git git-commit: do not fail to print the diffstat even if there is a file named HEAD Signed-off-by: Michael Loeffler Signed-off-by: Junio C Hamano --- diff --git a/git-commit.sh b/git-commit.sh index 04aad5e5d..c2beb76fe 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -628,7 +628,7 @@ then if test -z "$quiet" then echo "Created${initial_commit:+ initial} commit $commit" - git-diff-tree --shortstat --summary --root --no-commit-id HEAD + git-diff-tree --shortstat --summary --root --no-commit-id HEAD -- fi fi