builtin-commit: fix amending of the initial commit
authorJunio C Hamano <gitster@pobox.com>
Sun, 23 Dec 2007 03:22:29 +0000 (19:22 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 23 Dec 2007 03:45:06 +0000 (19:45 -0800)
commitd616a2396456fdb6679efa0c0bee301aeb606ca8
tree4ea5013508c66ac5307e6fe8b791dbbca758b5ad
parent7263881253acc4c3af8b3131c60da1554b72f8b2
builtin-commit: fix amending of the initial commit

When amending initial commit without editor, the command
incorrectly barfed because the check to see if there is anything
to commit referenced the non-existent HEAD^1.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c