summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ls-refs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ls-refs.c b/ls-refs.c
index 8c3181d051..ee19c510d4 100644
--- a/ls-refs.c
+++ b/ls-refs.c
@@ -193,7 +193,8 @@ int ls_refs(struct repository *r, struct packet_reader *request)
strvec_push(&data.prefixes, "");
refs_for_each_fullref_in_prefixes(get_main_ref_store(r),
get_git_namespace(), data.prefixes.v,
- NULL, send_ref, &data);
+ hidden_refs_to_excludes(&data.hidden_refs),
+ send_ref, &data);
packet_fflush(stdout);
strvec_clear(&data.prefixes);
strbuf_release(&data.buf);