git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t1410: check files and missing paths after reflog rewind

From
Pushkar Singh <pushkarkumarsingh1970@gmail.com>
Date
Jan 11, 2026, 14:03 UTC
Message-ID
<20260111140417.36274-1-pushkarkumarsingh1970@gmail.com>

Replace raw `test -f` and `! test -f` checks in the rewind test with `test_path_is_file` and `test_path_is_missing`. This provides clearer failure diagnostics and keeps the test consistent with the rest of the test suite.

Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com>
---
 t/t1410-reflog.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index e30f87a358..ce71f9a30a 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -130,10 +130,10 @@ test_expect_success 'pass through -- to sub-command' '
 
 test_expect_success rewind '
 	test_tick && git reset --hard HEAD~2 &&
-	test -f C &&
-	test -f A/B/E &&
-	! test -f F &&
-	! test -f A/G &&
+	test_path_is_file C &&
+	test_path_is_file A/B/E &&
+	test_path_is_missing F &&
+	test_path_is_missing A/G &&
 
 	check_have A B C D E F G H I J K L &&
 
-- 
2.43.0
Next: Junio C Hamano
Message 1 of 3 in “t1410: check files and missing paths after reflog rewind”
  1. t1410: check files and missing paths after reflog rewindPushkar Singh, Jan 11, 2026
  2. Junio C HamanoJan 11, 2026
  3. t1410: use test helpers in reflog rewind testPushkar Singh, Jan 11, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.