Merge branch 'jk/maint-add-empty'
* jk/maint-add-empty: add: don't complain when adding empty project root
This commit is contained in:
commit
f2a56171ac
@ -63,7 +63,7 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p
|
|||||||
fill_pathspec_matches(pathspec, seen, specs);
|
fill_pathspec_matches(pathspec, seen, specs);
|
||||||
|
|
||||||
for (i = 0; i < specs; i++) {
|
for (i = 0; i < specs; i++) {
|
||||||
if (!seen[i] && !file_exists(pathspec[i]))
|
if (!seen[i] && pathspec[i][0] && !file_exists(pathspec[i]))
|
||||||
die("pathspec '%s' did not match any files",
|
die("pathspec '%s' did not match any files",
|
||||||
pathspec[i]);
|
pathspec[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user