Skip to content

Commit 3db0599

Browse files
committed
t0301: another fix for Windows compatibility
Just like 0fdcfa2 (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 (because Windows has a much more powerful permission system that cannot be mapped into the simpler user/group/other read/write/execute model). 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>
1 parent 9639e04 commit 3db0599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t0301-credential-cache.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ test_expect_success SYMLINKS 'use user socket if user directory is a symlink to
123123
rmdir \"\$HOME/dir/\" &&
124124
rm \"\$HOME/.git-credential-cache\"
125125
" &&
126-
mkdir -p -m 700 "$HOME/dir/" &&
126+
mkdir -p "$HOME/dir/" &&
127+
chmod 700 "$HOME/dir/" &&
127128
ln -s "$HOME/dir" "$HOME/.git-credential-cache" &&
128129
check approve cache <<-\EOF &&
129130
protocol=https

0 commit comments

Comments
 (0)