We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab2c72 commit f01fdfaCopy full SHA for f01fdfa
btest
@@ -228,7 +228,10 @@ def _build_win_subprocess_cmd_script(cmd, tmpdir=None):
228
tf.write(fcontents)
229
tf.flush()
230
231
- bash_cmd = ["bash.exe", "-c", normalize_path(tf.name)]
+ # If you have Windows 11 and WSL2, it defaults to calling "Microsoft Bash Launcher"
232
+ # even if gitbash is in your path first. Who knows why. Using shutil.which here
233
+ # forces it to call the right thing.
234
+ bash_cmd = [shutil.which("bash.exe"), "-c", normalize_path(tf.name)]
235
return tf, bash_cmd
236
237
0 commit comments