We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13dfd7a + 2e60aab commit 0940d50Copy full SHA for 0940d50
name-hash.c
@@ -492,8 +492,10 @@ static void *lazy_name_thread_proc(void *_data)
492
for (k = 0; k < d->istate->cache_nr; k++) {
493
struct cache_entry *ce_k = d->istate->cache[k];
494
ce_k->ce_flags |= CE_HASHED;
495
- hashmap_entry_init(&ce_k->ent, d->lazy_entries[k].hash_name);
496
- hashmap_add(&d->istate->name_hash, &ce_k->ent);
+ if (!S_ISSPARSEDIR(ce_k->ce_mode)) {
+ hashmap_entry_init(&ce_k->ent, d->lazy_entries[k].hash_name);
497
+ hashmap_add(&d->istate->name_hash, &ce_k->ent);
498
+ }
499
}
500
501
return NULL;
0 commit comments