summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-27 22:22:47 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-27 22:34:19 -0700
commitb71ce7f3f13ebd0e212bdda82b012ee36df4f63f (patch)
tree770119a6f5ba788a15fd91b3ad29490b94a86e43 /builtin-commit.c
parent37b78c25476d752953dc541e46fbb6bd5017edf7 (diff)
parent28bc30220f30850a10217d61f73e46d8a541e670 (diff)
downloadgit-b71ce7f3f13ebd0e212bdda82b012ee36df4f63f.tar.gz
Merge 1.5.5.3 in
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 07872c8ea7..b294c1f88c 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -223,6 +223,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
if (interactive) {
interactive_add(argc, argv, prefix);
+ if (read_cache() < 0)
+ die("index file corrupt");
commit_style = COMMIT_AS_IS;
return get_index_file();
}