summaryrefslogtreecommitdiff
path: root/t/t5003-archive-zip.sh
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-03-25 15:06:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-25 15:54:37 (GMT)
commit6e45972cd74df4cc18e200b3e9363fe11d6334d6 (patch)
treeea0c7af884bfd1d5ac120be41c900d76040f226e /t/t5003-archive-zip.sh
parent6ec5df61d525fe088ed15951051b17d14a5c243b (diff)
downloadgit-6e45972cd74df4cc18e200b3e9363fe11d6334d6.zip
git-6e45972cd74df4cc18e200b3e9363fe11d6334d6.tar.gz
git-6e45972cd74df4cc18e200b3e9363fe11d6334d6.tar.bz2
t5003: drop the subshell in test_lazy_prereq
test_lazy_prereq will be evaluated in a throw-away directory. Drop unnecessary subshell and mkdir. Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5003-archive-zip.sh')
-rwxr-xr-xt/t5003-archive-zip.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/t/t5003-archive-zip.sh b/t/t5003-archive-zip.sh
index 106eddb..df1374a 100755
--- a/t/t5003-archive-zip.sh
+++ b/t/t5003-archive-zip.sh
@@ -7,12 +7,8 @@ test_description='git archive --format=zip test'
SUBSTFORMAT=%H%n
test_lazy_prereq UNZIP_SYMLINKS '
- (
- mkdir unzip-symlinks &&
- cd unzip-symlinks &&
- "$GIT_UNZIP" "$TEST_DIRECTORY"/t5003/infozip-symlinks.zip &&
- test -h symlink
- )
+ "$GIT_UNZIP" "$TEST_DIRECTORY"/t5003/infozip-symlinks.zip &&
+ test -h symlink
'
check_zip() {