send-pack: do not send out single-level refs such as refs/stash
commit30affa1e9a15e848f77c9c14544dd6dd593559d5
authorJeff King <peff@peff.net>
Wed, 29 Oct 2008 05:17:55 +0000 (29 05:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Nov 2008 06:48:39 +0000 (1 23:48 -0700)
tree88582765056b932f4ea9bb9cd93464cb7cf29830
parent1442171bc913a9cddae5c6ad0d0a4be3a1ca86e8
send-pack: do not send out single-level refs such as refs/stash

Since no version of receive-pack accepts these "funny refs", we should
mirror the check when considering the list of refs to send. IOW, don't
even make them eligible for matching or mirroring.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-send-pack.c