[fr] update french translation 2210/2210
[gitweb.git] / builtin / add.c
index 0df73ae73596546966af18e7076d9a6f54964786..2a2722fa10aa981695b21984e7c425c35b4f18d0 100644 (file)
@@ -547,7 +547,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
                        const char *path = pathspec.items[i].match;
                        if (pathspec.items[i].magic & PATHSPEC_EXCLUDE)
                                continue;
-                       if (!seen[i] &&
+                       if (!seen[i] && path[0] &&
                            ((pathspec.items[i].magic &
                              (PATHSPEC_GLOB | PATHSPEC_ICASE)) ||
                             !file_exists(path))) {