mirror of
https://github.com/git/git
synced 2024-10-29 17:08:46 +00:00
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
This commit is contained in:
commit
97865e83c7
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static int too_many_packs(void)
|
||||||
*/
|
*/
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
return gc_auto_pack_limit <= cnt;
|
return gc_auto_pack_limit < cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void add_repack_all_option(void)
|
static void add_repack_all_option(void)
|
||||||
|
|
Loading…
Reference in a new issue