Adjust argc that is meant to correspond do the number of elements in the pathspec array. Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html