aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2025-12-17 14:18:45 +0000
committerJunio C Hamano <gitster@pobox.com>2025-12-18 08:18:14 +0900
commiteae7c16c3db2e746dd720c4e9ad7c1724d372b07 (patch)
tree06e0bfb28e8b6a31c03d163e97ac0497f1405a09 /contrib/persistent-https
parentt1305: skip symlink tests that do not apply to Windows (diff)
downloadgit-eae7c16c3db2e746dd720c4e9ad7c1724d372b07.tar.gz
git-eae7c16c3db2e746dd720c4e9ad7c1724d372b07.zip
t6423: introduce Windows-specific handling for symlinking to /dev/null
The device `/dev/null` does not exist on Windows, it's called `NUL` there. Calling `ln -s /dev/null my-symlink` in a symlink-enabled MSYS2 Bash will therefore literally link to a file or directory called `null` that is supposed to be in the current drive's top-level `dev` directory. Which typically does not exist. The test, however, really wants the created symbolic link to point to the NUL device. Let's instead use the `mklink` utility on Windows to perform that job, and keep using `ln -s /dev/null <target>` on non-Windows platforms. While at it, add the missing `SYMLINKS` prereq because this test _still_ would not pass on Windows before support for symbolic links is upstreamed from Git for Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions