Avoid unnecessary 'lstat()' calls in 'get_stat_data()'
[gitweb.git] / builtin-commit.c
index 2f0b00a174ff970939d2758334cb8d1dca41cb42..72dd0b95531cc8024ea106b14bbe847e956d308c 100644 (file)
@@ -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;