rev-parse: clear --exclude list after 'git rev-parse --all'
[gitweb.git] / builtin / rev-parse.c
index a1e680b5e912beeed183dc271b0ae970a45a4814..f4847d3008767e25cb0ea427cebc37aeae072a44 100644 (file)
@@ -760,6 +760,7 @@ int cmd_rev_parse(int argc, const char **argv, const char *prefix)
                        }
                        if (!strcmp(arg, "--all")) {
                                for_each_ref(show_reference, NULL);
+                               clear_ref_exclusion(&ref_excludes);
                                continue;
                        }
                        if (skip_prefix(arg, "--disambiguate=", &arg)) {