]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5003: drop the subshell in test_lazy_prereq
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Wed, 25 Mar 2020 15:06:16 +0000 (22:06 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2020 15:54:37 +0000 (08:54 -0700)
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>
t/t5003-archive-zip.sh

index 106eddbd85b04ac8539b722ade63936e28325840..df1374a312d500a25ef625e1a426defe07208fb1 100755 (executable)
@@ -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() {