Code

git-gui: use shell to launch textconv filter in "blame"
[git.git] / lib / blame.tcl
index 2137ec9684d0acdb386e6b50e1b41aa7705c9746..77656d3675c5c128eafe3667d5fcb95e38559b9f 100644 (file)
@@ -460,7 +460,9 @@ 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.
+                       set fd [open |[list [shellpath] -c "$textconv \"\$0\"" $path] r]
                } else {
                        set fd [open $path r]
                }