fixup! name-hash: precompute hash values during preload-index

This commit is contained in:
Johannes Schindelin
2016-11-18 21:38:40 +01:00
parent c6703c2465
commit dee873cae6

View File

@@ -53,7 +53,7 @@ static struct dir_entry *hash_dir_entry(struct index_state *istate,
int use_precomputed_dir_hash = 0;
if (ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__SET) {
if (!ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__DIR)
if (!(ce->precompute_hash_state & CE_PRECOMPUTE_HASH_STATE__DIR))
return NULL; /* item does not have a parent directory */
if (namelen == ce_namelen(ce)) {
/* dir hash only valid for outer-most call (not recursive ones) */