X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-commit.c;h=81371b1d2698a48dba36046d7ff9d849f830a762;hb=ea0b767c1ea66f687e58a9fcff45a5a518e699c3;hp=46e649cd7ca0a2ede8f010a6d3bf294f81b85d55;hpb=7d4e3a72fb2d544b4a7cfd75f8626532d78fd726;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;