Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-10 03:27:16 +0400
committerJunio C Hamano <gitster@pobox.com>2009-10-10 03:27:16 +0400
commita17a9606e49dd3ad08558706f85475a694deb68b (patch)
treed7eb85719d36f9b6d09808d535d0d886ccc1a720 /t
parente12bfd86c1939be056fcf65e13359bea2e820d01 (diff)
parentebfbdb340ad9a1b6fbaf91464f0fd86643fdcb46 (diff)
Merge branch 'rs/maint-archive-prefix'
* rs/maint-archive-prefix: Git archive and trailing "/" in prefix
Diffstat (limited to 't')
-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