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

[PATCH 1/2] t9700/test.pl: fix path type expectation on cygwin

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 16, 2026, 20:39 UTC
Message-ID
<79d1fba5-8cd1-4fa5-9424-7ab77da0f5e0@ramsayjones.plus.com>

Commit 4ec7ac101b ("t9700: accommodate for Windows paths", 2025-12-17) changed the type of the absolute path to the git directory from unix to win32 for both GfW and cygwin. This fixed the test for GfW but causes new failures on cygwin, since the test expectation is that it uses unix paths on cygwin. In order to not break cygwin, disable the new code by removing the "or $^O eq 'cygwin'" sub-expression from the conditional part of the fix.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
 t/t9700/test.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t9700/test.pl b/t/t9700/test.pl
index 570b0c5680..f83e6169e2 100755
--- a/t/t9700/test.pl
+++ b/t/t9700/test.pl
@@ -118,7 +118,7 @@ sub adjust_dirsep {
 
 # paths
 my $abs_git_dir = $abs_repo_dir . "/.git";
-if ($^O eq 'msys' or $^O eq 'cygwin') {
+if ($^O eq 'msys') {
   $abs_git_dir = `cygpath -am "$abs_repo_dir/.git"`;
   $abs_git_dir =~ s/\r?\n?$//;
 }
-- 
2.52.0
Message 1 of 1 in “t9700/test.pl: fix path type expectation on cygwin”
  1. 1/2 t9700/test.pl: fix path type expectation on cygwinRamsay Jones, Jan 16, 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.