gc: fix off-by-one error with gc.autoPackLimit
commit5f4e3bf536621675efd51020eb2950986b882e18
authorEric Wong <e@80x24.org>
Sat, 25 Jun 2016 06:46:47 +0000 (25 06:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jun 2016 15:28:47 +0000 (27 08:28 -0700)
tree3565ee027e3fb07bd053956a0547348caf8d3cc6
parent765428699a5381f113d19974720bc91b5bfeaf1d
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>
builtin/gc.c