X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5000-tar-tree.sh;h=e223c074f043571ff868a2f4783c7cc155185004;hb=153920da5b62024c0aceef23252b82ad18e5fe22;hp=ac835fe4317b7a37d77205487066d8f10bd71422;hpb=460ca302fdf453459850676c049ed7b46b43a0d4;p=git.git diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index ac835fe43..e223c074f 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -49,9 +49,17 @@ test_expect_success \ git-update-ref HEAD $(TZ=GMT GIT_COMMITTER_DATE="2005-05-27 22:00:00" \ git-commit-tree $treeid b.tar' + test_expect_success \ 'git-tar-tree' \ - 'git-tar-tree HEAD >b.tar' + 'git-tar-tree HEAD >b2.tar' + +test_expect_success \ + 'git-archive vs. git-tar-tree' \ + 'diff b.tar b2.tar' test_expect_success \ 'validate file modification time' \ @@ -130,4 +138,8 @@ test_expect_success \ 'validate file contents with prefix' \ 'diff -r a e/prefix/a' +test_expect_success \ + 'git-archive --list outside of a git repo' \ + 'GIT_DIR=some/non-existing/directory git-archive --list' + test_done