Skip to content

Commit

Permalink
git-gui: Paper bag fix for Cygwin shortcut creation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Jul 10, 2007
1 parent 0a84b3d commit 5922446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shortcut.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5922446

Please sign in to comment.