update-server-info: respect core.bigfilethreshold
authorNguyễn Thái Ngọc Duy <redacted>
Wed, 7 Mar 2012 10:54:21 +0000 (17:54 +0700)
committerJunio C Hamano <redacted>
Wed, 7 Mar 2012 17:07:39 +0000 (09:07 -0800)
commitda591a7f4bbe1a208cc5f955523506eb857c45ca
treeffc69ae0cbb7d1599c66f8392973d4d1c701b203
parent6f7f3beb2d19ab772729fc599d4a92ebf9140c5f
update-server-info: respect core.bigfilethreshold

This command indirectly calls check_sha1_signature() (add_info_ref ->
deref_tag -> parse_object -> ..) , which may put whole blob in memory
if the blob's size is under core.bigfilethreshold. As config is not
read, the threshold is always 512MB. Respect user settings here.

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/update-server-info.c
t/t1050-large.sh
git clone https://git.99rst.org/PROJECT