aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-20 19:03:26 -0500
committerShawn O. Pearce <spearce@spearce.org>2007-01-21 02:54:17 -0500
commitbdadecbae5b9f7317994bf2f521bb15068823a1d (patch)
tree16ed2d9a615c398a926a079bed21b42768ef868e
parent68cbfb13919132cb2ddc591a765f4f20f9294657 (diff)
downloadgit-bdadecbae5b9f7317994bf2f521bb15068823a1d.tar.gz
git-bdadecbae5b9f7317994bf2f521bb15068823a1d.tar.xz
git-gui: Work around odd cygpath bug on Windows.
There appears to be a bug on one of my test systems where cygpath with the --long-name option is generating a corrupt string that does not actually refer to sh.exe. This breaks any desktop icon created by git-gui as the executable we are trying to invoke does not exist. Since Cygwin is typically installed as C:\cygwin long path names is probably not actually necessary to link to the shell. I also added a small echo to the start of the icon script, as it can take one of my test systems several seconds to startup git-gui. This way the user knows we're starting git-gui, and was politely asked to wait for the action to complete. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui b/git-gui
index ade64dcd1..c5120cc1a 100755
--- a/git-gui
+++ b/git-gui
@@ -2742,7 +2742,6 @@ proc do_windows_shortcut {} {
set sh [exec cygpath \
--windows \
--absolute \
- --long-name \
/bin/sh]
set me [exec cygpath \
--unix \
@@ -2754,6 +2753,7 @@ proc do_windows_shortcut {} {
$gitdir]
regsub -all ' $me "'\\''" me
regsub -all ' $gd "'\\''" gd
+ puts $fd "@ECHO Starting git-gui... Please wait..."
puts -nonewline $fd "\"$sh\" --login -c \""
puts -nonewline $fd "GIT_DIR='$gd'"
puts -nonewline $fd " '$me'"