Skip to content

Commit 87be95b

Browse files
committed
Merge branch 'ew/gc-auto-pack-limit-fix' into maint
"gc.autoPackLimit" when set to 1 should not trigger a repacking when there is only one pack, but the code counted poorly and did so. * ew/gc-auto-pack-limit-fix: gc: fix off-by-one error with gc.autoPackLimit
2 parents 52d637c + 5f4e3bf commit 87be95b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static int too_many_packs(void)
177177
*/
178178
cnt++;
179179
}
180-
return gc_auto_pack_limit <= cnt;
180+
return gc_auto_pack_limit < cnt;
181181
}
182182

183183
static void add_repack_all_option(void)

0 commit comments

Comments
 (0)