cache-tree: mark istate->cache_changed on cache tree invalidation
[gitweb.git] / builtin / gc.c
index 72aa91206d7e9b0c857597b5438b6ada9c7868bc..85f5c2bc62ec1ead593f5aa2e3d7077e65f2f061 100644 (file)
@@ -189,7 +189,7 @@ static int need_to_gc(void)
        else if (!too_many_loose_objects())
                return 0;
 
-       if (run_hook(NULL, "pre-auto-gc", NULL))
+       if (run_hook_le(NULL, "pre-auto-gc", NULL))
                return 0;
        return 1;
 }