Skip to content

Commit

Permalink
Merge branch 'jk/maint-add-empty' into maint
Browse files Browse the repository at this point in the history
* jk/maint-add-empty:
  add: don't complain when adding empty project root
  • Loading branch information
Junio C Hamano committed May 26, 2009
2 parents 0e5168f + 07d7bed commit 43f8f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-add.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p
fill_pathspec_matches(pathspec, seen, specs);

for (i = 0; i < specs; i++) {
if (!seen[i] && !file_exists(pathspec[i]))
if (!seen[i] && pathspec[i][0] && !file_exists(pathspec[i]))
die("pathspec '%s' did not match any files",
pathspec[i]);
}
Expand Down

0 comments on commit 43f8f56

Please sign in to comment.