summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-09-11 17:37:45 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-09-11 22:57:18 (GMT)
commit63c4024ff080430004967fa27b8af8fe243e2ea3 (patch)
tree5c6924a487e2930128c16518b7755a0394ef8fe5
parent8938410189315979255c1dfcc3c0b7a4bf9953e5 (diff)
downloadgit-63c4024ff080430004967fa27b8af8fe243e2ea3.zip
git-63c4024ff080430004967fa27b8af8fe243e2ea3.tar.gz
git-63c4024ff080430004967fa27b8af8fe243e2ea3.tar.bz2
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 <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 26eb5ac..e221d5b 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...
######################################################################
##