Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ew/gc-auto-pack-limit-fix'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Jul 2016 18:24:12 +0000
(11:24 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Jul 2016 18:24:12 +0000
(11:24 -0700)
"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
builtin/gc.c
patch
|
blob
|
history
raw
(from parent 1:
67166a8
)
diff --git
a/builtin/gc.c
b/builtin/gc.c
index c583aad6ec2896c8a6ad3b35671e92a3c0478bcd..332bcf7e7a0ae1900199349870103c388c9ffb35 100644
(file)
--- 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)