refactor: use git-bash.exe instead of bin/bash.exe to make sure bash-profiles work (#1856)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-10-16 18:02:05 +08:00
parent 91d769cfe2
commit 9193e17ed6

View File

@@ -144,7 +144,7 @@ namespace SourceGit.Native
break;
var binDir = Path.GetDirectoryName(OS.GitExecutable)!;
var bash = Path.Combine(binDir, "bash.exe");
var bash = Path.GetFullPath(Path.Combine(binDir, "..", "git-bash.exe"));
if (!File.Exists(bash))
break;