|
sg-python.sh runs on every hook, and under Git Bash each command
substitution is a new Windows process, whether or not the interpreter it
probes exists (#6470). On a machine with only `python` it started 13
processes before the hook; it now starts 1.
- Skip interpreter names that are not on PATH (a builtin lookup) before
probing them.
- The probe execs the interpreter in its subshell instead of forking
again from it.
- Remember the first Python below 3.10 seen in pass 2 instead of probing
the same names a second time in pass 3.
- Convert drive paths (/c/Users/...) to Windows form in-shell under Git
Bash / MSYS2; mount points and Cygwin still go through cygpath.
Interpreter order and the choice made are unchanged.
|