From: Junio C Hamano Date: Sat, 23 Aug 2008 20:05:10 +0000 (-0700) Subject: discard_cache: reset lazy name_hash bit X-Git-Tag: v1.6.0.3~80^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=64ca23afda5bd7514115a4457abf37db21b989ac;p=git.git discard_cache: reset lazy name_hash bit We forgot to reset name_hash_initialized bit when discarding the in-core index. Signed-off-by: Junio C Hamano --- diff --git a/read-cache.c b/read-cache.c index 2c03ec306..6c57095f7 100644 --- a/read-cache.c +++ b/read-cache.c @@ -1243,6 +1243,7 @@ int discard_index(struct index_state *istate) istate->cache_nr = 0; istate->cache_changed = 0; istate->timestamp = 0; + istate->name_hash_initialized = 0; free_hash(&istate->name_hash); cache_tree_free(&(istate->cache_tree)); free(istate->alloc);