diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2010-08-05 12:05:22 +0200 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-08-12 21:35:09 +0100 |
commit | 62f9a632c819bd53a5b7dbe40409ab086a4bce10 (patch) | |
tree | 6fd7855db671a1f80ff8e9043198ad8604b1de43 /git-gui.sh | |
parent | 780777720a1ded770be7653cee0dc9777f14f07f (diff) | |
download | git-62f9a632c819bd53a5b7dbe40409ab086a4bce10.tar.gz git-62f9a632c819bd53a5b7dbe40409ab086a4bce10.tar.xz |
git-gui: use shell to launch textconv filter in "blame"
The textconv filters may include multiple arguments and may make use
of unix shell features. To maintain compatibility with 'git blame'
ensure these commands are passed through bash.
Reported-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index 815725d1e..8ade423eb 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -128,6 +128,7 @@ set _githtmldir {} set _reponame {} set _iscygwin {} set _search_path {} +set _shellpath {@@SHELL_PATH@@} set _trace [lsearch -exact $argv --trace] if {$_trace >= 0} { @@ -137,6 +138,11 @@ if {$_trace >= 0} { set _trace 0 } +proc shellpath {} { + global _shellpath + return $_shellpath +} + proc appname {} { global _appname return $_appname |