pack-objects: do not get distracted by broken symrefs
commit14886b40c552d3ad4d5492d922948d76762af198
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 28 Sep 2015 14:01:25 +0000 (28 16:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Oct 2015 19:42:06 +0000 (8 12:42 -0700)
tree9cc35d6373299ae26e6e37bdba01ec4c2688873b
parent8c845cde99dcfc9821f1182623248dee9ebb4227
pack-objects: do not get distracted by broken symrefs

It is quite possible for, say, a remote HEAD to become broken, e.g.
when the default branch was renamed.

We should still be able to pack our objects when such a thing happens;
simply ignore broken symrefs (because they cannot matter for the packing
process anyway).

This fixes https://github.com/git-for-windows/git/issues/423

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reachable.c
t/t6500-gc.sh