diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-28 07:22:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-28 07:34:19 +0200 |
commit | b71ce7f3f13ebd0e212bdda82b012ee36df4f63f (patch) | |
tree | 770119a6f5ba788a15fd91b3ad29490b94a86e43 /builtin-commit.c | |
parent | clone: make sure we support the transport type (diff) | |
parent | GIT 1.5.5.3 (diff) | |
download | git-b71ce7f3f13ebd0e212bdda82b012ee36df4f63f.tar.xz git-b71ce7f3f13ebd0e212bdda82b012ee36df4f63f.zip |
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(); } |