t/lib-diff-alternative: abstract away SHA-1-specific constants
[gitweb.git] / split-index.c
index 7be5f748a6097ae3b3d8623ccfb42c9b4766ef9c..3eb8ff1b43db284bddac643c270e2148114c4bbf 100644 (file)
@@ -238,6 +238,8 @@ void prepare_to_write_split_index(struct index_state *istate)
                                ALLOC_GROW(entries, nr_entries+1, nr_alloc);
                                entries[nr_entries++] = ce;
                        }
+                       if (is_null_oid(&ce->oid))
+                               istate->drop_cache_tree = 1;
                }
        }