git-gui: Paper bag fix for Cygwin shortcut creation
authorShawn O. Pearce <spearce@spearce.org>
Mon, 9 Jul 2007 15:01:02 +0000 (11:01 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 10 Jul 2007 01:19:22 +0000 (21:19 -0400)
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 <spearce@spearce.org>
lib/shortcut.tcl

index 64ced9d801d879a7c8bde1340834b7296dff82a2..7086162476089f31368caf3b303ef03153f8a125 100644 (file)
@@ -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