diff options
| author | Ashutosh Pandey <ashutosh.pandeyhlr007@gmail.com> | 2023-02-19 00:51:28 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-21 12:01:53 -0800 |
| commit | d35d8f2e7af9dfd7560c1cfeb96713285c0f59bc (patch) | |
| tree | 633acd8278c26c004ebf0c28ee0133fe291e6dfc | |
| parent | 768bb238c4843bf52847773a621de4dffa6b9ab5 (diff) | |
| download | git-d35d8f2e7af9dfd7560c1cfeb96713285c0f59bc.tar.gz | |
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 <ashutosh.pandeyhlr007@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rwxr-xr-x | t/t2015-checkout-unborn.sh | 11 |
1 files changed, 6 insertions, 5 deletions
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 ' |
