gc: fix off-by-one error with gc.autoPackLimit
[gitweb.git] / builtin / gc.c
index 5c634afc0022c0ea7a8cd8c81727935ad79a6333..15e27809296d98e687b292ee5fa333de02335dc7 100644 (file)
@@ -145,7 +145,7 @@ static int too_many_packs(void)
                 */
                cnt++;
        }
-       return gc_auto_pack_limit <= cnt;
+       return gc_auto_pack_limit < cnt;
 }
 
 static void add_repack_all_option(void)