Code

discard_cache: reset lazy name_hash bit
authorJunio C Hamano <gitster@pobox.com>
Sat, 23 Aug 2008 20:05:10 +0000 (13:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Aug 2008 20:05:10 +0000 (13:05 -0700)
We forgot to reset name_hash_initialized bit when discarding the in-core index.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c

index 2c03ec3069decb20f7557af4ac7dbe295f2dcf9c..6c57095f73427ffeaadeaa6018b1f8bdc23ee859 100644 (file)
@@ -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);