diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-05-03 08:51:04 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-03 10:22:56 -0700 |
commit | 5544049def9a80bc5ea09a5649e13c1b56160518 (patch) | |
tree | b3fe36f87fed8040d1df754ab367d585d9c014e8 /t/t5000-tar-tree.sh | |
parent | 9cb513b7988c2fe443c47186e42dd827b76ddb14 (diff) | |
download | git-5544049def9a80bc5ea09a5649e13c1b56160518.tar.gz |
archive-tar: stream large blobs to tar file
t5000 verifies output while t1050 makes sure the command always
respects core.bigfilethreshold
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 't/t5000-tar-tree.sh')
-rwxr-xr-x | t/t5000-tar-tree.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 527c9e7548..d9b997f5d3 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -84,6 +84,12 @@ test_expect_success \ 'git archive vs. git tar-tree' \ 'test_cmp b.tar b2.tar' +test_expect_success 'git archive on large files' ' + test_config core.bigfilethreshold 1 && + git archive HEAD >b3.tar && + test_cmp b.tar b3.tar +' + test_expect_success \ 'git archive in a bare repo' \ '(cd bare.git && git archive HEAD) >b3.tar' |