From: Đoàn Trần Công Danh Date: Wed, 25 Mar 2020 15:06:16 +0000 (+0700) Subject: t5003: drop the subshell in test_lazy_prereq X-Git-Tag: v2.27.0-rc0~100^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e45972cd74df4cc18e200b3e9363fe11d6334d6;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t5003-archive-zip.sh b/t/t5003-archive-zip.sh index 106eddbd85..df1374a312 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() {