# [PATCH] git-commit: do not fail to print the diffstat even if there is a file named HEAD

2 messages from 2007-01-08 to 2007-01-08. Participants: Michael Loeffler, Junio C Hamano.
Thread: https://gitlist.dev/t/6285

## Michael Loeffler, 2007-01-08 19:23

Subject: [PATCH] git-commit: do not fail to print the diffstat even if there is a file named HEAD
Message-ID: <1168284194.6134.12.camel@ibook.zvpunry.de>
URL: https://gitlist.dev/e/1168284194.6134.12.camel%40ibook.zvpunry.de

```
Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
---
 git-commit.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-commit.sh b/git-commit.sh
index 04aad5e..c2beb76 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
 
-- 
1.4.4.4.g49df

```

## Junio C Hamano, 2007-01-08 20:13

Subject: Re: [PATCH] git-commit: do not fail to print the diffstat even if there is a file named HEAD
Message-ID: <7vejq5wa3c.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vejq5wa3c.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <1168284194.6134.12.camel@ibook.zvpunry.de>

```
Thanks.  Will apply.

```
