projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
builtin-add: fix unmatched pathspec warnings.
[git.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index
089c7a8
..
37243f8
100644
(file)
--- a/
builtin-add.c
+++ b/
builtin-add.c
@@
-123,7
+123,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);
}