Subject: Re: [PATCH v2 06/10] archive-tar: stream large blobs to tar file

From: René Scharfe <[email-masked]>
Date: Wed, 02 May 2012 16:34:17 +0200

Am 02.05.2012 15:25, schrieb Nguyễn Thái Ngọc Duy:
> diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
> index 527c9e7..421c356 100755
> --- a/t/t5000-tar-tree.sh
> +++ b/t/t5000-tar-tree.sh
> @@ -84,6 +84,13 @@ test_expect_success \
>       'git archive vs. git tar-tree' \
>       'test_cmp b.tar b2.tar'
>
> +test_expect_success 'git archive on large files' '
> +    git config core.bigfilethreshold 1 &&
> +    git archive HEAD >b3.tar &&
> +    git config --unset core.bigfilethreshold &&
> +    test_cmp b.tar b3.tar
> +'
> +
>   test_expect_success \
>       'git archive in a bare repo' \
>       '(cd bare.git&&  git archive HEAD) >b3.tar'

Nit: You could use test_config and wouldn't have to worry about 
unsetting.  Or run "git -c core.bigfilethreshold=1 archive HEAD".

René