@matheusbsbs / matheus-bagliano / commits / 6e45972cd7
Fork 0

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>

Đoàn Trần Công Danh committed Mar 25, 2020 at 22:06 UTC 6e45972cd74df4cc18e200b3e9363fe11d6334d6
1 file changed +2 -6
t/t5003-archive-zip.sh
+2 -6
@@ -7,12 +7,8 @@ test_description='git archive --format=zip test'
7 SUBSTFORMAT=%H%n
8
9 test_lazy_prereq UNZIP_SYMLINKS '
10 - (
11 - mkdir unzip-symlinks &&
12 - cd unzip-symlinks &&
13 - "$GIT_UNZIP" "$TEST_DIRECTORY"/t5003/infozip-symlinks.zip &&
14 - test -h symlink
15 - )
10 + "$GIT_UNZIP" "$TEST_DIRECTORY"/t5003/infozip-symlinks.zip &&
11 + test -h symlink
12 '
13
14 check_zip() {