From: Ævar Arnfjörð Bjarmason Date: Thu, 26 Nov 2020 22:22:52 GMT Subject: [PATCH v2 05/10] mktag tests: don't needlessly use a subshell Message-ID: <20201126222257.5629-6-avarab@gmail.com> In-Reply-To: <20201126012854.399-1-avarab@gmail.com> 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 --- t/t3800-mktag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh index d696aa4e52..0e411e3c45 100755 --- a/t/t3800-mktag.sh +++ b/t/t3800-mktag.sh @@ -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 message ) && + test_must_fail git mktag message && grep "$expect" message ' } -- 2.29.2.222.g5d2a92d10f8