Code

Fix 'git commit -a' in a newly initialized repository
authorFredrik Kuivinen <frekui@gmail.com>
Thu, 22 Feb 2007 20:28:12 +0000 (21:28 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Feb 2007 05:02:39 +0000 (21:02 -0800)
commit755b99d81539461645088085ea033a3b36152da5
treedd8f3df5ee88197ea19898daddfa73f7d0fd1297
parent4917d2a66e8fa8c40ea6082c0fd8b58492c9444e
Fix 'git commit -a' in a newly initialized repository

With current git:

$ git init
$ git commit -a
cp: cannot stat `.git/index': No such file or directory

Output a nice error message instead.

Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh