{"thread":{"id":"64823","subject":"[PATCH 1/2] t9700/test.pl: fix path type expectation on cygwin","startedAt":"2026-01-16T20:42:47Z","lastAt":"2026-01-16T20:42:47Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"534087","messageId":"79d1fba5-8cd1-4fa5-9424-7ab77da0f5e0@ramsayjones.plus.com","threadId":"64823","inReplyTo":null,"subject":"[PATCH 1/2] t9700/test.pl: fix path type expectation on cygwin","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2026-01-16T20:39:44Z","receivedAt":"2026-01-16T20:42:47Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nCommit 4ec7ac101b (\"t9700: accommodate for Windows paths\", 2025-12-17)\nchanged the type of the absolute path to the git directory from unix to\nwin32 for both GfW and cygwin. This fixed the test for GfW but causes\nnew failures on cygwin, since the test expectation is that it uses unix\npaths on cygwin. In order to not break cygwin, disable the new code by\nremoving the \"or $^O eq 'cygwin'\" sub-expression from the conditional\npart of the fix.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n---\n t/t9700/test.pl | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t9700/test.pl b/t/t9700/test.pl\nindex 570b0c5680..f83e6169e2 100755\n--- a/t/t9700/test.pl\n+++ b/t/t9700/test.pl\n@@ -118,7 +118,7 @@ sub adjust_dirsep {\n \n # paths\n my $abs_git_dir = $abs_repo_dir . \"/.git\";\n-if ($^O eq 'msys' or $^O eq 'cygwin') {\n+if ($^O eq 'msys') {\n   $abs_git_dir = `cygpath -am \"$abs_repo_dir/.git\"`;\n   $abs_git_dir =~ s/\\r?\\n?$//;\n }\n-- \n2.52.0\n"}]}