Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-26 06:01:41 +0400
committerJunio C Hamano <gitster@pobox.com>2009-05-26 06:01:41 +0400
commit43f8f560c03f6942cad1f12dd8ae5cfa045c8e84 (patch)
tree377467d14b85155f820e0188172f257a88463d45
parent0e5168fd18f3975d71d3a292b0e0df174bb884d5 (diff)
parent07d7bedda8d18ffbfe5960ce27b73a24c01cac1a (diff)
Merge branch 'jk/maint-add-empty' into maint
* jk/maint-add-empty: add: don't complain when adding empty project root
-rw-r--r--builtin-add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-add.c b/builtin-add.c
index cb67d2c17e..ad889aac5b 100644
--- a/builtin-add.c
+++ b/builtin-add.c
@@ -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]);
}