Skip to content

Commit

Permalink
discard_cache: reset lazy name_hash bit
Browse files Browse the repository at this point in the history
We forgot to reset name_hash_initialized bit when discarding the in-core index.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 23, 2008
1 parent a81892d commit 64ca23a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions read-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64ca23a

Please sign in to comment.