From: Shawn O. Pearce Date: Mon, 9 Jul 2007 15:01:02 +0000 (-0400) Subject: git-gui: Paper bag fix for Cygwin shortcut creation X-Git-Tag: v1.5.3-rc1~16^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5922446794ee1bfcd4bede739467211cd46aa005;p=git.git git-gui: Paper bag fix for Cygwin shortcut creation We cannot execute the git directory, it is not a valid Tcl command name. Instead we just want to pass it as an argument to our sq proc. Signed-off-by: Shawn O. Pearce --- diff --git a/lib/shortcut.tcl b/lib/shortcut.tcl index 64ced9d80..708616247 100644 --- a/lib/shortcut.tcl +++ b/lib/shortcut.tcl @@ -66,7 +66,7 @@ proc do_cygwin_shortcut {} { puts $fd "@ECHO Entering [reponame]" puts $fd "@ECHO Starting git-gui... please wait..." puts -nonewline $fd "@\"$sh\" --login -c \"" - puts -nonewline $fd "GIT_DIR=[sq [$gd]]" + puts -nonewline $fd "GIT_DIR=[sq $gd]" puts -nonewline $fd " [sq $me]" puts $fd "&\"" close $fd