]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mktag tests: don't needlessly use a subshell
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jan 2021 19:42:33 +0000 (20:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Jan 2021 22:58:28 +0000 (14:58 -0800)
The use of a subshell dates back to e9b20943b77 (t/t3800: do not use a
temporary file to hold expected result., 2008-01-04). It's not needed
anymore, if it ever was.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3800-mktag.sh

index d696aa4e52e2baf474fe75424964a69a2023b8d3..0e411e3c45fa46d604f7efad0f45e5799d36013e 100755 (executable)
@@ -14,7 +14,7 @@ test_description='git mktag: tag object verify test'
 check_verify_failure () {
        expect="$2"
        test_expect_success "$1" '
-               ( test_must_fail git mktag <tag.sig 2>message ) &&
+               test_must_fail git mktag <tag.sig 2>message &&
                grep "$expect" message
        '
 }