summaryrefslogtreecommitdiff
path: root/t/t5000-tar-tree.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-09 16:27:16 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-09 16:27:16 -0700
commita17a9606e49dd3ad08558706f85475a694deb68b (patch)
treed7eb85719d36f9b6d09808d535d0d886ccc1a720 /t/t5000-tar-tree.sh
parente12bfd86c1939be056fcf65e13359bea2e820d01 (diff)
parentebfbdb340ad9a1b6fbaf91464f0fd86643fdcb46 (diff)
downloadgit-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-xt/t5000-tar-tree.sh12
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