Commit ed16517
committed
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 <[email protected]>1 parent ad85e5f commit ed16517
1 file changed
+35
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
94 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
95 | 126 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 127 | + | |
99 | 128 | | |
100 | 129 | | |
101 | 130 | | |
102 | | - | |
| 131 | + | |
103 | 132 | | |
104 | 133 | | |
105 | 134 | | |
| |||
0 commit comments