Find viable bash.exe for running hooks on Windows
commited1651792509ddbd1e139a884d26e6cd818160cb
authorPeter Grayson <pete@jpgrayson.net>
Sat, 28 Aug 2021 16:51:08 +0000 (28 12:51 -0400)
committerPeter Grayson <pete@jpgrayson.net>
Sun, 29 Aug 2021 18:58:55 +0000 (29 14:58 -0400)
treeac4286a13a1e9fea4ae7398abbc47a90c6233ecd
parentad85e5fb605774cbff943dffed84c5ac1bae77b0
Find viable bash.exe for running hooks on Windows

When running hooks on Windows, bash.exe must be supplied on the command
line to run the hook script. This change tries to find a viable bash.exe
from the user's PATH, while avoiding the bash.exe stub in the OS's System32
directory.

This change is adapted from Michael Wild's PR #103.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
stgit/utils.py