diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-27 22:22:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-27 22:34:19 -0700 |
commit | b71ce7f3f13ebd0e212bdda82b012ee36df4f63f (patch) | |
tree | 770119a6f5ba788a15fd91b3ad29490b94a86e43 /builtin-commit.c | |
parent | 37b78c25476d752953dc541e46fbb6bd5017edf7 (diff) | |
parent | 28bc30220f30850a10217d61f73e46d8a541e670 (diff) | |
download | git-b71ce7f3f13ebd0e212bdda82b012ee36df4f63f.tar.gz |
Merge 1.5.5.3 in
Diffstat (limited to 'builtin-commit.c')
-rw-r--r-- | builtin-commit.c | 2 |
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(); } |