pre-commit.sample: Diff against the empty tree when HEAD is invalid
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Thu, 5 Nov 2009 10:57:57 +0000 (11:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Nov 2009 07:48:09 +0000 (23:48 -0800)
This was already the case for the old "diff --check" call, but the new
one that checks whether there are any non-ascii file names was missing
it, making that check fail for root commits.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found