free_ref_entry(): do not trigger reading of loose refs
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 20 May 2012 06:49:32 +0000 (08:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 22:10:49 +0000 (15:10 -0700)
commit27b5587c7610515832cf39cd0c3792e7655bdd9a
tree377bcb580ff840094360dff78711cc7f53a30d7b
parent663c1295d8a6a591a805692d311e1d709e3193e2
free_ref_entry(): do not trigger reading of loose refs

Do not call get_ref_dir() from within free_ref_entry(), because that
triggers the reading of loose refs, only for them to be freed
immediately.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c