aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 2e079b6ab1..3135116169 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -543,7 +543,7 @@ proc is_shellscript {filename} {
# scripts specifically otherwise just call the filter command.
proc open_cmd_pipe {cmd path} {
global env
- if {![file executable [shellpath]]} {
+ if {[is_Windows]} {
set exe [auto_execok [lindex $cmd 0]]
if {[is_shellscript [lindex $exe 0]]} {
set run [linsert [auto_execok sh] end -c "$cmd \"\$0\"" $path]