t7810-grep.sh: fix duplicated test name
[gitweb.git] / cache-tree.c
index 32772b95644d2f32841984b25b685379c6914ad4..e590346a08b4f71a1162ee5608c4c53467b9d0ea 100644 (file)
@@ -377,7 +377,7 @@ static int update_one(struct cache_tree *it,
                 * they are not part of generated trees. Invalidate up
                 * to root to force cache-tree users to read elsewhere.
                 */
-               if (ce->ce_flags & CE_INTENT_TO_ADD) {
+               if (ce_intent_to_add(ce)) {
                        to_invalidate = 1;
                        continue;
                }