From: Junio C Hamano Date: Wed, 13 Jul 2016 18:24:12 +0000 (-0700) Subject: Merge branch 'ew/gc-auto-pack-limit-fix' X-Git-Tag: v2.10.0-rc0~128 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/97865e83c7266ad0fd55f75ae4e2d968ef34bf6f?hp=67166a8da6283fa519fb257fa222b968fa70db50 Merge branch 'ew/gc-auto-pack-limit-fix' "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 --- diff --git a/builtin/gc.c b/builtin/gc.c index c583aad6ec..332bcf7e7a 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -177,7 +177,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)