From: Nguyễn Thái Ngọc Duy Date: Wed, 7 Mar 2012 10:54:21 +0000 (+0700) Subject: update-server-info: respect core.bigfilethreshold X-Git-Tag: v1.7.11-rc0~163^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da591a7f4bbe1a208cc5f955523506eb857c45ca;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/update-server-info.c b/builtin/update-server-info.c index b90dce635..0d63c4498 100644 --- a/builtin/update-server-info.c +++ b/builtin/update-server-info.c @@ -15,6 +15,7 @@ int cmd_update_server_info(int argc, const char **argv, const char *prefix) OPT_END() }; + git_config(git_default_config, NULL); argc = parse_options(argc, argv, prefix, options, update_server_info_usage, 0); if (argc > 0) diff --git a/t/t1050-large.sh b/t/t1050-large.sh index dd1bb8422..4d127f19b 100755 --- a/t/t1050-large.sh +++ b/t/t1050-large.sh @@ -130,7 +130,7 @@ test_expect_success 'git-show a large file' ' ' -test_expect_failure 'repack' ' +test_expect_success 'repack' ' git repack -ad '