mirror of
https://github.com/git/git.git
synced 2024-11-17 14:34:49 +01:00
Merge branch 'lt/dirwalk' into next
* lt/dirwalk: builtin-add: fix unmatched pathspec warnings.
This commit is contained in:
commit
fad6008385
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p
|
|||
|
||||
/* Existing file? We must have ignored it */
|
||||
match = pathspec[i];
|
||||
if (!lstat(match, &st))
|
||||
if (!match[0] || !lstat(match, &st))
|
||||
continue;
|
||||
die("pathspec '%s' did not match any files", match);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue