X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5000-tar-tree.sh;h=0037f63d91a7c11f6599a99e76840a0cdbf4c779;hb=ebfbdb340ad9a1b6fbaf91464f0fd86643fdcb46;hp=5f84b18fa5f0f199905bc7fc045672b70035a708;hpb=1cd749cc0722533bd1849f491ec9ab19e17232e1;p=git.git diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 5f84b18fa..0037f63d9 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -230,4 +230,16 @@ test_expect_success \ 'git archive --list outside of a git repo' \ 'GIT_DIR=some/non-existing/directory git archive --list' +test_expect_success 'git-archive --prefix=olde-' ' + git archive --prefix=olde- >h.tar HEAD && + ( + mkdir h && + cd h && + "$TAR" xf - <../h.tar + ) && + test -d h/olde-a && + test -d h/olde-a/bin && + test -f h/olde-a/bin/sh +' + test_done