Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'lt/dirwalk' into next
[gitweb.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index 7083820f7b2745708e40f624935a0ad231351e24..2afb82d6c1d745694f8457415e13f4f67b86ca19 100644
(file)
--- a/
builtin-add.c
+++ b/
builtin-add.c
@@
-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);
}