Skip to contentSkip to conversation

t2015-checkout-unborn.sh: changes the style for cd

PATCH In review [email protected] 2 participants 3 messages Feb 18, 2023 – Feb 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t2015-checkout-unborn.sh: changes the style for cd

From: Ashutosh Pandey <[email protected]>

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.

---
this is my first time contributing to git I want to participate in this year's GSoC and I'm looking for some microprojects the ones that are listed on the website are mostly done so if anyone can suggest some beginners level microprojects that would be great.

 t/t2015-checkout-unborn.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
t/t2015-checkout-unborn.sh +6 -5
index 9425aae639..fdc4149f15 100755
@@ -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
 '

base-commit: d9d677b2d8cc5f70499db04e633ba7a400f64cbf

Signature · 1 line
2.39.2
#1 lore raw
Quoted 28 lines · [email protected] writes:

From: Ashutosh Pandey <[email protected]>

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.

---
this is my first time contributing to git I want to participate in this year's GSoC and I'm looking for some microprojects the ones that are listed on the website are mostly done so if anyone can suggest some beginners level microprojects that would be great.

 t/t2015-checkout-unborn.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
t/t2015-checkout-unborn.sh +0 -4
index 9425aae639..fdc4149f15 100755
@@ -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 &&

t/t2015-checkout-unborn.sh TEST_PASSES_SANITIZE_LEAK=true · line 20

Quoted 10 lines
t/t2015-checkout-unborn.sh +6 -1
-	 git commit -m base
+	(
+		cd parent &&
+	 	git init &&
+	 	echo content >file &&
+	 	git add file &&
+	 	git commit -m base
 	) &&
 	git fetch parent main:origin
 '

OK. This makes it siimlar to the last test in the same t2015 script that uses this "more recent" style.

Looks good.

Thanks.

#2 lore raw
In reply to [email protected]

t/t2015-checkout-unborn.sh TEST_PASSES_SANITIZE_LEAK=true · line 17

Quoted 6 lines · [email protected] writes:
t/t2015-checkout-unborn.sh +6 -0
+	(
+		cd parent &&
+	 	git init &&
+	 	echo content >file &&
+	 	git add file &&
+	 	git commit -m base

These four lines begin with "HT SP HT"; the space between the horizontal tabs should be removed.

No need to resend, as "git am --whitespace=fix" already corrected them.

Thanks.