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