mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user