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é -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html