Skip to content

Commit 64ca23a

Browse files
committed
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 <gitster@pobox.com>
1 parent a81892d commit 64ca23a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

read-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,7 @@ int discard_index(struct index_state *istate)
12431243
istate->cache_nr = 0;
12441244
istate->cache_changed = 0;
12451245
istate->timestamp = 0;
1246+
istate->name_hash_initialized = 0;
12461247
free_hash(&istate->name_hash);
12471248
cache_tree_free(&(istate->cache_tree));
12481249
free(istate->alloc);

0 commit comments

Comments
 (0)