Browse Source

Merge branch 'lt/dirwalk' into next

* lt/dirwalk:
  builtin-add: fix unmatched pathspec warnings.
maint
Junio C Hamano 19 years ago
parent
commit
fad6008385
  1. 2
      builtin-add.c

2
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 */ /* Existing file? We must have ignored it */
match = pathspec[i]; match = pathspec[i];
if (!lstat(match, &st)) if (!match[0] || !lstat(match, &st))
continue; continue;
die("pathspec '%s' did not match any files", match); die("pathspec '%s' did not match any files", match);
} }

Loading…
Cancel
Save