summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f7f3be)
raw | patch | inline | side by side (parent: 6f7f3be)
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Wed, 7 Mar 2012 10:54:21 +0000 (17:54 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 7 Mar 2012 17:07:39 +0000 (09:07 -0800) |
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>
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>
builtin/update-server-info.c | patch | blob | history | |
t/t1050-large.sh | patch | blob | history |
index b90dce6358153b274a1e26afde9cc89aad473d14..0d63c4498c0c10193846c020a2d76958bd12e1bd 100644 (file)
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 dd1bb8422c42ae527c845a8e06a24b830d315e50..4d127f19b78cc76018e316532c905137e9c7ab08 100755 (executable)
--- a/t/t1050-large.sh
+++ b/t/t1050-large.sh
'
-test_expect_failure 'repack' '
+test_expect_success 'repack' '
git repack -ad
'