File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2667,10 +2667,18 @@ if {![is_bare]} {
2667
2667
}
2668
2668
2669
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
+ }
2670
2679
.mbar.repository add command \
2671
2680
-label [ mc " Git Bash" ] \
2672
- -command {eval exec [ auto_execok start] \
2673
- [ list " Git Bash" bash --login -l &] }
2681
+ -command {eval exec [ auto_execok start] $cmdLine }
2674
2682
}
2675
2683
2676
2684
if {[ is_Windows] || ![ is_bare] } {
You can’t perform that action at this time.
0 commit comments