aboutsummaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-23 13:05:10 -0700
committerJunio C Hamano <gitster@pobox.com>2008-08-23 13:05:10 -0700
commit64ca23afda5bd7514115a4457abf37db21b989ac (patch)
tree77db004907aecc89d39390153f9fe48c08cc1df9 /read-cache.c
parenta81892dd8c37b6f13793739721b520fee3ce4c2c (diff)
downloadgit-64ca23afda5bd7514115a4457abf37db21b989ac.tar.gz
git-64ca23afda5bd7514115a4457abf37db21b989ac.tar.xz
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>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c1
1 files changed, 1 insertions, 0 deletions
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);