[PATCH 6/9] clean ":" is like specifying nothing
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 10, 2011, 05:51 UTC
- Message-ID
- <1305006678-4051-7-git-send-email-gitster@pobox.com>
- In-Reply-To
- <1305006678-4051-1-git-send-email-gitster@pobox.com>
Adjust argc that is meant to correspond do the number of elements in the pathspec array.
Signed-off-by: Junio C Hamano <gitster@pobox.com> --- builtin/clean.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin/clean.c b/builtin/clean.c index 4a312ab..686cd6b 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -96,6 +96,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix) add_exclude(exclude_list.items[i].string, "", 0, dir.exclude_list); pathspec = get_pathspec(prefix, argv); + argc = count_pathspec(pathspec); fill_directory(&dir, pathspec);
-- 1.7.5.1.290.g1b565