Skip to contentSkip to conversation

t7104: use test_path_is_file instead of test -f

PATCH In review Tilak Kumar 2 participants 4 messages Oct 26 – Oct 27

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t7104: use test_path_is_file instead of test -f

Use the helper so that a missing file is reported
with a clear message instead of a silent failure.

---
 t/t7104-reset-hard.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t7104-reset-hard.sh +1 -1
index c23d6e3f52..acf145e69b 100755
@@ -29,7 +29,7 @@ test_expect_success 'reset --hard should restore unmerged ones' '
 
 	git reset --hard &&
 	git ls-files --error-unmatch before/1 before/2 hello later/3 &&
-	test -f hello
+	test_path_is_file hello
 
 '
 
Signature · 1 line
2.55.0
#1 lore raw
Quoted 2 lines · Tilak Kumar

Use the helper so that a missing file is reported
with a clear message instead of a silent failure.

This makes sense but what is GSoC doing in the patch title? Has the program already been announced for 2027?

Quoted 17 lines
---
 t/t7104-reset-hard.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t7104-reset-hard.sh +1 -1
index c23d6e3f52..acf145e69b 100755
@@ -29,7 +29,7 @@ test_expect_success 'reset --hard should restore unmerged ones' '
 
 	git reset --hard &&
 	git ls-files --error-unmatch before/1 before/2 hello later/3 &&
-	test -f hello
+	test_path_is_file hello
 
 '
author
#2 lore raw
Quoted 2 lines · Junio C Hamano

This makes sense but what is GSoC doing in the patch title? Has the program already been announced for 2027?

Not yet.I added the prefix while preparing to apply for GSoC 2027, which was premature. I will use a plain [PATCH] prefix going forward. Thanks for the feedback.
I can resend this as v2 with the subject fixed if that is helpful. Thanks.

#3 lore raw
Quoted 7 lines · Tilak Raaz
Quoted 2 lines · Junio C Hamano

This makes sense but what is GSoC doing in the patch title? Has the program already been announced for 2027?

Not yet.I added the prefix while preparing to apply for GSoC 2027, which was premature.

OK, that is fine and makes your patches more informative.

My question was not rhetorical, complaining about the use of the mark. I knew (and confirmed later with the people who run the program at Google) that the announcement would not be made until December, and wanted to know if there is public information that says otherwise.

Thanks.