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.
2 parents 98a7224 + 076a736 commit d668187Copy full SHA for d668187
git-gui/git-gui.sh
@@ -2667,10 +2667,18 @@ if {![is_bare]} {
2667
}
2668
2669
if {[is_Windows]} {
2670
+ # Use /git-bash.exe if available
2671
+ set normalized [file normalize $::argv0]
2672
+ regsub "/mingw../libexec/git-core/git-gui$" \
2673
+ $normalized "/git-bash.exe" cmdLine
2674
+ if {$cmdLine != $normalized && [file exists $cmdLine]} {
2675
+ set cmdLine [list "Git Bash" $cmdLine &]
2676
+ } else {
2677
+ set cmdLine [list "Git Bash" bash --login -l &]
2678
+ }
2679
.mbar.repository add command \
2680
-label [mc "Git Bash"] \
- -command {eval exec [auto_execok start] \
- [list "Git Bash" bash --login -l &]}
2681
+ -command {eval exec [auto_execok start] $cmdLine}
2682
2683
2684
if {[is_Windows] || ![is_bare]} {
0 commit comments