diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-03-07 17:54:21 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-07 09:07:39 -0800 |
commit | da591a7f4bbe1a208cc5f955523506eb857c45ca (patch) | |
tree | ffc69ae0cbb7d1599c66f8392973d4d1c701b203 /builtin/update-server-info.c | |
parent | 6f7f3beb2d19ab772729fc599d4a92ebf9140c5f (diff) | |
download | git-da591a7f4bbe1a208cc5f955523506eb857c45ca.tar.gz |
update-server-info: respect core.bigfilethresholdnd/stream-more
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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/update-server-info.c')
-rw-r--r-- | builtin/update-server-info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/update-server-info.c b/builtin/update-server-info.c index b90dce6358..0d63c4498c 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) |