author | Junio C Hamano <gitster@pobox.com> | |
Sun, 5 Apr 2009 08:04:38 +0000 (01:04 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 5 Apr 2009 08:04:38 +0000 (01:04 -0700) |
* maint-1.6.0:
commit: abort commit if interactive add failed
git-repack: use non-dashed update-server-info
Conflicts:
builtin-commit.c
commit: abort commit if interactive add failed
git-repack: use non-dashed update-server-info
Conflicts:
builtin-commit.c
1 | 2 | |||
---|---|---|---|---|
builtin-commit.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-commit.c
index 2f0b00a174ff970939d2758334cb8d1dca41cb42,fde7b891d9d015acfeb1ee3b9ab42ff1eafd49b6..72dd0b95531cc8024ea106b14bbe847e956d308c
--- 1/builtin-commit.c
--- 2/builtin-commit.c
+++ b/builtin-commit.c
const char **pathspec = NULL;
if (interactive) {
- interactive_add(argc, argv, prefix);
+ if (interactive_add(argc, argv, prefix) != 0)
+ die("interactive add failed");
- if (read_cache() < 0)
+ if (read_cache_preload(NULL) < 0)
die("index file corrupt");
commit_style = COMMIT_AS_IS;
return get_index_file();