From: Junio C Hamano Date: Fri, 26 May 2006 07:07:15 +0000 (-0700) Subject: [PATCH] gitk: start-up bugfix X-Git-Tag: v1.4.0-rc1~21^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5e096337c5516fece2c21d813c8534ac541f2a0;p=git.git [PATCH] gitk: start-up bugfix The code to extract a message part from the error message was not passing the error message to [string range], and resulted in the show_error not getting called. Signed-off-by: Junio C Hamano Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 74278568e..45d31127f 100755 --- a/gitk +++ b/gitk @@ -4937,7 +4937,7 @@ if {$i >= 0} { # so look for "fatal:". set i [string first "fatal:" $err] if {$i > 0} { - set err [string range [expr {$i + 6}] end] + set err [string range $err [expr {$i + 6}] end] } show_error . "Bad arguments to gitk:\n$err" exit 1