Skip to content

Commit c7aba49

Browse files
committed
fixup! name-hash: precompute hash values during preload-index
Clear the precompute flag in create_alias_ce(). It might be possible to use the precompute_ fields from the alias in the new one, but its not worth the bother. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 6619f79 commit c7aba49

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
@@ -616,6 +616,7 @@ static struct cache_entry *create_alias_ce(struct index_state *istate,
616616
new = xcalloc(1, cache_entry_size(len));
617617
memcpy(new->name, alias->name, len);
618618
copy_cache_entry(new, ce);
619+
new->precompute_hash_state = 0;
619620
save_or_free_index_entry(istate, ce);
620621
return new;
621622
}

0 commit comments

Comments
 (0)