Skip to content

Commit 63c4024

Browse files
committed
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>
1 parent 8938410 commit 63c4024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-gui.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if {[catch {package require Tcl 8.4} err]
4242
exit 1
4343
}
4444

45-
rename send {} ; # What an evil concept...
45+
catch {rename send {}} ; # What an evil concept...
4646

4747
######################################################################
4848
##

0 commit comments

Comments
 (0)