diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2020-03-25 22:06:16 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-25 08:54:37 -0700 |
commit | 6e45972cd74df4cc18e200b3e9363fe11d6334d6 (patch) | |
tree | ea0c7af884bfd1d5ac120be41c900d76040f226e /t/t5003-archive-zip.sh | |
parent | test-lib-functions: test_cmp: eval $GIT_TEST_CMP (diff) | |
download | tgif-6e45972cd74df4cc18e200b3e9363fe11d6334d6.tar.xz |
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-x | t/t5003-archive-zip.sh | 8 |
1 files changed, 2 insertions, 6 deletions
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() { |