X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-add.c;h=4a91e3eb118850882fbc22e8d8f37e8bbfaa7617;hb=464509f790f409d95e0820364ef7296d82942d8c;hp=820110e085f20d8615c74167cf3ae4cfd1fe6912;hpb=356eff534cfb181cb65f92240692ff4306e3212a;p=git.git diff --git a/builtin-add.c b/builtin-add.c index 820110e08..4a91e3eb1 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -228,18 +228,6 @@ int cmd_add(int argc, const char **argv, const char *prefix) goto finish; } - if (*argv) { - /* Was there an invalid path? */ - if (pathspec) { - int num; - for (num = 0; pathspec[num]; num++) - ; /* just counting */ - if (argc != num) - exit(1); /* error message already given */ - } else - exit(1); /* error message already given */ - } - fill_directory(&dir, pathspec, ignored_too); if (show_only) {