diff options
author | Eric Wong <e@80x24.org> | 2016-06-25 06:46:47 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-27 15:28:47 (GMT) |
commit | 5f4e3bf536621675efd51020eb2950986b882e18 (patch) | |
tree | 3565ee027e3fb07bd053956a0547348caf8d3cc6 | |
parent | 765428699a5381f113d19974720bc91b5bfeaf1d (diff) | |
download | git-5f4e3bf536621675efd51020eb2950986b882e18.zip git-5f4e3bf536621675efd51020eb2950986b882e18.tar.gz git-5f4e3bf536621675efd51020eb2950986b882e18.tar.bz2 |
gc: fix off-by-one error with gc.autoPackLimit
This matches the documentation and allows gc.autoPackLimit=1
to maintain a single pack without attempting a repack on every
"git gc --auto" invocation.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/gc.c b/builtin/gc.c index 5c634af..15e2780 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -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) |