@matheusbsbs / matheus-bagliano / commits / 4c79adc5c0
Fork 0

git-gui: fix PATH environment for mingw development environment

When creating a desktop shortcut from the gui the shortcut directly starts wish with the git-gui script. In the msysgit development environment some dll's reside in the mingw/bin directory which causes that git can not start because libiconv2.dll is not found. When using such a link the error is even more cryptic stating: "child killed: unknown signal" Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Heiko Voigt committed Feb 27, 2010 at 21:47 UTC 4c79adc5c05de52a08f5e8a9615c9d6c9fe9a991
1 file changed +3 -2
windows/git-gui.sh
+3 -2
@@ -13,10 +13,11 @@ if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
13 incr argc -2
14 }
15
16 -set bindir [file dirname \
16 +set basedir [file dirname \
17 [file dirname \
18 [file dirname [info script]]]]
19 -set bindir [file join $bindir bin]
19 +set bindir [file join $basedir bin]
20 +set bindir "$bindir;[file join $basedir mingw bin]"
21 regsub -all ";" $bindir "\\;" bindir
22 set env(PATH) "$bindir;$env(PATH)"
23 unset bindir