cmake: do find Git for Windows' shell interpreter
commit72b6eeb81b163d3b9e4e9546f8041160b2d759c9
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 28 Sep 2020 21:09:07 +0000 (28 21:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Sep 2020 22:11:39 +0000 (28 15:11 -0700)
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 <oystwa@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt