aboutsummaryrefslogtreecommitdiff
path: root/t/t5705-clone-2gb.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-02-01 09:27:35 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-01 12:09:47 -0800
commit5eef828bc03649ba11acc05c983d72823c27f0bb (patch)
tree2554847a2c6f7853bf2b9b8226de1ccca67ce828 /t/t5705-clone-2gb.sh
parent63d04a78043c61c52ae437fa6106e7029b466bbf (diff)
downloadgit-5eef828bc03649ba11acc05c983d72823c27f0bb.tar.gz
git-5eef828bc03649ba11acc05c983d72823c27f0bb.tar.xz
fast-import: Stream very large blobs directly to pack
If a blob is larger than the configured big-file-threshold, instead of reading it into a single buffer obtained from malloc, stream it onto the end of the current pack file. Streaming the larger objects into the pack avoids the 4+ GiB memory footprint that occurs when fast-import is processing 2+ GiB blobs. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5705-clone-2gb.sh')
-rwxr-xr-xt/t5705-clone-2gb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5705-clone-2gb.sh b/t/t5705-clone-2gb.sh
index 9f52154ca..adfaae8c5 100755
--- a/t/t5705-clone-2gb.sh
+++ b/t/t5705-clone-2gb.sh
@@ -31,7 +31,7 @@ test_expect_success 'setup' '
echo "data 5" &&
echo ">2gb" &&
cat commit) |
- git fast-import &&
+ git fast-import --big-file-threshold=2 &&
test ! -f exit-status
'