cmake: do find Git for Windows' shell interpreter
authorJohannes Schindelin <redacted>
Mon, 28 Sep 2020 21:09:07 +0000 (21:09 +0000)
committerJunio C Hamano <redacted>
Mon, 28 Sep 2020 22:11:39 +0000 (15:11 -0700)
commit72b6eeb81b163d3b9e4e9546f8041160b2d759c9
tree8f1546a6e4799f8e2467fd1230828ee60392cab3
parent3eccc7b99d4f47991ca3a647ad27680a45a82517
cmake: do find Git for Windows' shell interpreter

By default, Git for Windows does not install its `sh.exe` into the
`PATH`. However, our current `CMakeLists.txt` expects to find a shell
interpreter in the `PATH`.

So let's fall back to looking in the default location where Git for
Windows _does_ install a relatively convenient `sh.exe`:
`C:\Program Files\Git\bin\sh.exe`

Helped-by: Øystein Walle <redacted>
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/buildsystems/CMakeLists.txt
git clone https://git.99rst.org/PROJECT