X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=git-gui%2Flib%2Fblame.tcl;h=61e358f960ca949cac5664c67442b82d0afca65f;hb=fbfe5de5bdaaf9572c1811e3b4ddfaa35e6bb227;hp=2137ec9684d0acdb386e6b50e1b41aa7705c9746;hpb=cc34bb0b0279a79117978cf220d70b1c14da05ca;p=git.git diff --git a/git-gui/lib/blame.tcl b/git-gui/lib/blame.tcl index 2137ec968..61e358f96 100644 --- a/git-gui/lib/blame.tcl +++ b/git-gui/lib/blame.tcl @@ -460,7 +460,14 @@ method _load {jump} { } if {$commit eq {}} { if {$do_textconv ne 0} { - set fd [open |[list $textconv $path] r] + # Run textconv with sh -c "..." to allow it to + # contain command + arguments. On windows, just + # call the filter command. + if {![file executable [shellpath]]} { + set fd [open |[linsert $textconv end $path] r] + } else { + set fd [open |[list [shellpath] -c "$textconv \"\$0\"" $path] r] + } } else { set fd [open $path r] }