Skip to content

Commit da591a7

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f7f3be commit da591a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

builtin/update-server-info.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ int cmd_update_server_info(int argc, const char **argv, const char *prefix)
1515
OPT_END()
1616
};
1717

18+
git_config(git_default_config, NULL);
1819
argc = parse_options(argc, argv, prefix, options,
1920
update_server_info_usage, 0);
2021
if (argc > 0)

t/t1050-large.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ test_expect_success 'git-show a large file' '
130130
131131
'
132132

133-
test_expect_failure 'repack' '
133+
test_expect_success 'repack' '
134134
git repack -ad
135135
'
136136

0 commit comments

Comments
 (0)