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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6f7f3beb2d
commit
da591a7f4b
@ -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)
|
||||
|
@ -130,7 +130,7 @@ test_expect_success 'git-show a large file' '
|
||||
|
||||
'
|
||||
|
||||
test_expect_failure 'repack' '
|
||||
test_expect_success 'repack' '
|
||||
git repack -ad
|
||||
'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user