summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-05 01:04:54 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-05 01:04:54 -0700
commitbe18f4b899a94ff51ff3c621822500579cf6df6a (patch)
tree4c51b65cbee630580fe470b4ed5ba695ce3187f0 /builtin-commit.c
parent38b7ccbe8c6615c709a4a69071c46593a1494952 (diff)
parentacb0b7b01f64cf55d508b469eb2a351359c0cd82 (diff)
downloadgit-be18f4b899a94ff51ff3c621822500579cf6df6a.tar.gz
Merge branch 'maint-1.6.1' into maint
* maint-1.6.1: commit: abort commit if interactive add failed git-repack: use non-dashed update-server-info
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 46e649cd7c..81371b1d26 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -224,7 +224,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
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_preload(NULL) < 0)
die("index file corrupt");
commit_style = COMMIT_AS_IS;