submodule_needs_pushing(): explain the behaviour when we cannot answer
[gitweb.git] / builtin / commit.c
index bb9f79b6ef4b5cd01cafac551bb6665a433334aa..1cba3b75c8dc121cf86558aa96726ea99f28eba3 100644 (file)
@@ -397,7 +397,7 @@ static const char *prepare_index(int argc, const char **argv, const char *prefix
         */
        if (all || (also && pathspec.nr)) {
                hold_locked_index(&index_lock, 1);
-               add_files_to_cache(also ? prefix : NULL, &pathspec, 0, 0);
+               add_files_to_cache(also ? prefix : NULL, &pathspec, 0);
                refresh_cache_or_die(refresh_flags);
                update_main_cache_tree(WRITE_TREE_SILENT);
                if (write_locked_index(&the_index, &index_lock, CLOSE_LOCK))