What did you do before the bug happened? (Steps to reproduce your issue)
git sparse-checkout set --no-cone '/*' '!/Some/Path/To/Exclude'
git sparse-checkout list
What did you expect to happen? (Expected behavior)
/*
!/Some/Path/To/Exclude
What happened instead? (Actual behavior)
/*
!C:/Program Files/Git/Some/Path/To/Exclude
What's different between what you expected and what actually happened?
The path to git's install directory has been prefixed to my sparse checkout exclude patterns
Anything else you want to add:
This behaviour occurs on Windows and does not occur on Mac
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.37.2.windows.2
cpu: x86_64
built from commit: c5597badf94101f0076e6667edee120ab1ee5bac
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 18363
compiler info: gnuc: 12.1
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe
[Enabled Hooks]
post-checkout
post-commit
post-merge
pre-push