X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-commit.c;h=81371b1d2698a48dba36046d7ff9d849f830a762;hb=fc71db39e0d75e8a403f36f3fecf4450886cd165;hp=46e649cd7ca0a2ede8f010a6d3bf294f81b85d55;hpb=8af95ca0174f05344e36d05b61844c8af4764b92;p=git.git diff --git a/builtin-commit.c b/builtin-commit.c index 46e649cd7..81371b1d2 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;