X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-gui%2Flib%2Fblame.tcl;h=61e358f960ca949cac5664c67442b82d0afca65f;hb=b3369abfeb4b1630905de2ab516aeb946c0c19db;hp=2137ec9684d0acdb386e6b50e1b41aa7705c9746;hpb=79d532c36a5d275ed237e196f36054f3c45d70aa;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] }