Merge branch 'cb/notes-freeing-always-null-fix'
[gitweb.git] / builtin / rev-parse.c
index 455f62246d69ad0468ffde58e568732bd3339c63..10d4dab894e25a73d6a761205ce53c88019a4a8b 100644 (file)
@@ -765,6 +765,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)) {