We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 362724a + 07d7bed commit f2a5617Copy full SHA for f2a5617
1 file changed
builtin-add.c
@@ -63,7 +63,7 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p
63
fill_pathspec_matches(pathspec, seen, specs);
64
65
for (i = 0; i < specs; i++) {
66
- if (!seen[i] && !file_exists(pathspec[i]))
+ if (!seen[i] && pathspec[i][0] && !file_exists(pathspec[i]))
67
die("pathspec '%s' did not match any files",
68
pathspec[i]);
69
}
0 commit comments