Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
reset: make tree counting less confusing
[gitweb.git]
/
builtin
/
add.c
diff --git
a/builtin/add.c
b/builtin/add.c
index c20548e4f545116c6e3bff75e59e953be603cc2a..ef625e3fb8b4f880f85e8a0283ecc18392ce19b6 100644
(file)
--- a/
builtin/add.c
+++ b/
builtin/add.c
@@
-119,6
+119,7
@@
int add_files_to_cache(const char *prefix,
rev.diffopt.flags |= DIFF_OPT_OVERRIDE_SUBMODULE_CONFIG;
rev.max_count = 0; /* do not compare unmerged paths with stage #2 */
run_diff_files(&rev, DIFF_RACY_IS_MODIFIED);
+ clear_pathspec(&rev.prune_data);
return !!data.add_errors;
}