From: Shawn O. Pearce Date: Tue, 11 Sep 2007 17:37:45 +0000 (-0400) Subject: git-gui: Don't delete send on Windows as it doesn't exist X-Git-Tag: gitgui-0.8.3~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=63c4024ff080430004967fa27b8af8fe243e2ea3;p=git.git git-gui: Don't delete send on Windows as it doesn't exist The Windows port of Tk does not have the send command so we cannot delete it from our global namespace, but the Mac OS X and X11 ports do have it. Switching this delete attempt into a catch makes send go away, or stay away. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui.sh b/git-gui.sh index 26eb5ac30..e221d5b51 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -42,7 +42,7 @@ if {[catch {package require Tcl 8.4} err] exit 1 } -rename send {} ; # What an evil concept... +catch {rename send {}} ; # What an evil concept... ###################################################################### ##