From: Ashutosh Pandey Date: Sat, 18 Feb 2023 19:21:28 +0000 (+0530) Subject: t2015-checkout-unborn.sh: changes the style for cd X-Git-Tag: v2.40.0-rc1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d35d8f2e7af9dfd7560c1cfeb96713285c0f59bc;p=thirdparty%2Fgit.git t2015-checkout-unborn.sh: changes the style for cd the `cd` followed the old style which wasn't consistent with the rest of the test suite, so this commit makes it consistent with the current style of the test suite for `cd` in subshell. Signed-off-by: Ashutosh Pandey Signed-off-by: Junio C Hamano --- diff --git a/t/t2015-checkout-unborn.sh b/t/t2015-checkout-unborn.sh index 9425aae639..fb0e13881c 100755 --- a/t/t2015-checkout-unborn.sh +++ b/t/t2015-checkout-unborn.sh @@ -9,11 +9,12 @@ TEST_PASSES_SANITIZE_LEAK=true test_expect_success 'setup' ' mkdir parent && - (cd parent && - git init && - echo content >file && - git add file && - git commit -m base + ( + cd parent && + git init && + echo content >file && + git add file && + git commit -m base ) && git fetch parent main:origin '