summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-28 18:25:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-28 18:25:56 (GMT)
commit87be95b6f9c51c0492f48e30fd14316934a7e3c8 (patch)
tree925288e94175ff1905c095781ad23bfc037b9b94 /builtin
parent52d637c422840c410eb179b5d8960db5863cdea7 (diff)
parent5f4e3bf536621675efd51020eb2950986b882e18 (diff)
downloadgit-87be95b6f9c51c0492f48e30fd14316934a7e3c8.zip
git-87be95b6f9c51c0492f48e30fd14316934a7e3c8.tar.gz
git-87be95b6f9c51c0492f48e30fd14316934a7e3c8.tar.bz2
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
Diffstat (limited to 'builtin')
-rw-r--r--builtin/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/gc.c b/builtin/gc.c
index c583aad..332bcf7 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)