diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-09 16:27:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-09 16:27:16 -0700 |
commit | a17a9606e49dd3ad08558706f85475a694deb68b (patch) | |
tree | d7eb85719d36f9b6d09808d535d0d886ccc1a720 /t/t5000-tar-tree.sh | |
parent | e12bfd86c1939be056fcf65e13359bea2e820d01 (diff) | |
parent | ebfbdb340ad9a1b6fbaf91464f0fd86643fdcb46 (diff) | |
download | git-a17a9606e49dd3ad08558706f85475a694deb68b.tar.gz |
Merge branch 'rs/maint-archive-prefix'
* rs/maint-archive-prefix:
Git archive and trailing "/" in prefix
Diffstat (limited to 't/t5000-tar-tree.sh')
-rwxr-xr-x | t/t5000-tar-tree.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 5f84b18fa5..0037f63d91 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 |