diff --git a/builtin/add.c b/builtin/add.c
index 21dc1f73395b5f6b1491c235f656bea057092eb1..12b964e642b91863776f161a7b2aab2ec216efcb 100644 (file)
--- a/builtin/add.c
+++ b/builtin/add.c
if (!seen[i] && pathspec[i][0]
&& !file_exists(pathspec[i])) {
if (ignore_missing) {
- if (excluded(&dir, pathspec[i], DT_UNKNOWN))
+ int dtype = DT_UNKNOWN;
+ if (excluded(&dir, pathspec[i], &dtype))
dir_add_ignored(&dir, pathspec[i], strlen(pathspec[i]));
} else
die("pathspec '%s' did not match any files",