From 9193e17ed6f9c4087140b28fa25dfb34950b23cd Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 16 Oct 2025 18:02:05 +0800 Subject: [PATCH] refactor: use `git-bash.exe` instead of `bin/bash.exe` to make sure bash-profiles work (#1856) Signed-off-by: leo --- src/Native/Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index aa1b42c8..8439d702 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -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;