Merge branch 'rs/copy-array' into maint
[gitweb.git] / builtin / commit.c
index 77e3dc849419e697abe8f2f4c7d753cce17634a8..7a1ade0d2771cdbd21524381fae0c43a9d0c20cd 100644 (file)
@@ -387,7 +387,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))