]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t2015-checkout-unborn.sh: changes the style for cd
authorAshutosh Pandey <ashutosh.pandeyhlr007@gmail.com>
Sat, 18 Feb 2023 19:21:28 +0000 (00:51 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Feb 2023 20:01:53 +0000 (12:01 -0800)
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 <ashutosh.pandeyhlr007@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2015-checkout-unborn.sh

index 9425aae6395838b3d0fd57b8cf8fe228d1db335f..fb0e13881cd8a290dd272c6dc16c3f097f49cb39 100755 (executable)
@@ -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
 '