Fix pack.packSizeLimit and --max-pack-size handling
authorNicolas Pitre <nico@cam.org>
Wed, 12 Nov 2008 18:23:58 +0000 (13:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Nov 2008 22:55:03 +0000 (14:55 -0800)
If the limit was sufficiently low, having a single object written
could bust the limit (by design), but caused the remaining allowed
size to go negative for subsequent objects, which for an unsigned
variable is a rather huge limit.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found