[PATCH] gitk: start-up bugfix
authorJunio C Hamano <junkio@cox.net>
Fri, 26 May 2006 07:07:15 +0000 (00:07 -0700)
committerPaul Mackerras <paulus@samba.org>
Fri, 26 May 2006 12:25:26 +0000 (22:25 +1000)
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 <junkio@cox.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index 74278568ec2be18bf5c08830b6e273e0229da475..45d31127fa46318a4f1c928422c51991d0f509f0 100755 (executable)
--- 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