t0301: another fix for Windows compatibility

Just like 0fdcfa2f9f5 (t0301: fixes for windows compatibility, 2021-09-14) explained, we should not call `mkdir -m<mode>` in the test suite because that would fail on Windows. There was one forgotten instance of this which was hidden by a `SYMLINK` prerequisite. Currently, this prevents this test case from being executed on Windows, but with the upcoming support for symbolic links, it would become a problem. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Dec 17, 2025 at 14:18 UTC 492cc31b57b2f06626c302f3470471bfe355de9b
1 file changed +2 -1
t/t0301-credential-cache.sh
+2 -1
@@ -123,7 +123,8 @@ test_expect_success SYMLINKS 'use user socket if user directory is a symlink to
123 rmdir \"\$HOME/dir/\" &&
124 rm \"\$HOME/.git-credential-cache\"
125 " &&
126 - mkdir -p -m 700 "$HOME/dir/" &&
126 + mkdir -p "$HOME/dir/" &&
127 + chmod 700 "$HOME/dir/" &&
128 ln -s "$HOME/dir" "$HOME/.git-credential-cache" &&
129 check approve cache <<-\EOF &&
130 protocol=https