summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-07-13 11:24:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-07-13 11:24:12 -0700
commit97865e83c7266ad0fd55f75ae4e2d968ef34bf6f (patch)
treec3b4f5c5aa47c91c76e5ed26f7280fc2db78b9d6
parentMerge branch 'ah/unpack-trees-advice-messages' (diff)
parentgc: fix off-by-one error with gc.autoPackLimit (diff)
downloadtgif-97865e83c7266ad0fd55f75ae4e2d968ef34bf6f.tar.xz
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
-rw-r--r--builtin/gc.c2
1 files changed, 1 insertions, 1 deletions
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)