diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2025-12-17 14:18:41 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-18 08:18:13 +0900 |
| commit | 492cc31b57b2f06626c302f3470471bfe355de9b (patch) | |
| tree | b988890611b9aa7fb0e5ca7698816e4f93943672 /t | |
| parent | 5e8e7e47e0029335bb8b51333d56077d72b862a9 (diff) | |
| download | git-492cc31b57b2f06626c302f3470471bfe355de9b.tar.xz | |
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>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0301-credential-cache.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t0301-credential-cache.sh b/t/t0301-credential-cache.sh index dc30289f75..6f7cfd9e33 100755 --- a/t/t0301-credential-cache.sh +++ b/t/t0301-credential-cache.sh @@ -123,7 +123,8 @@ test_expect_success SYMLINKS 'use user socket if user directory is a symlink to rmdir \"\$HOME/dir/\" && rm \"\$HOME/.git-credential-cache\" " && - mkdir -p -m 700 "$HOME/dir/" && + mkdir -p "$HOME/dir/" && + chmod 700 "$HOME/dir/" && ln -s "$HOME/dir" "$HOME/.git-credential-cache" && check approve cache <<-\EOF && protocol=https |
