Code

git-commit: do not fail to print the diffstat even if there is a file named HEAD
authorMichael Loeffler <zvpunry@zvpunry.de>
Mon, 8 Jan 2007 19:23:13 +0000 (20:23 +0100)
committerJunio C Hamano <junkio@cox.net>
Mon, 8 Jan 2007 22:45:59 +0000 (14:45 -0800)
Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh

index 04aad5e5da6fad46bc71c859286615c2f6ce11ab..c2beb76fe436279422ff5212aed573fb821bad7b 100755 (executable)
@@ -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