Skip to content

Commit

Permalink
git-gui: fix PATH environment for mingw development environment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Voigt authored and Pat Thoyts committed Jul 30, 2010
1 parent a197b1e commit 4c79adc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions windows/git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
incr argc -2
}

set bindir [file dirname \
set basedir [file dirname \
[file dirname \
[file dirname [info script]]]]
set bindir [file join $bindir bin]
set bindir [file join $basedir bin]
set bindir "$bindir;[file join $basedir mingw bin]"
regsub -all ";" $bindir "\\;" bindir
set env(PATH) "$bindir;$env(PATH)"
unset bindir
Expand Down

0 comments on commit 4c79adc

Please sign in to comment.