aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-26 00:07:15 -0700
committerPaul Mackerras <paulus@samba.org>2006-05-26 22:25:26 +1000
commitb5e096337c5516fece2c21d813c8534ac541f2a0 (patch)
treea315454f762929fe4f24512d1a7b31ff43538992 /gitk
parent8974c6f93e62cd4b6ffe93562a6569b8920a89a3 (diff)
downloadgit-b5e096337c5516fece2c21d813c8534ac541f2a0.tar.gz
git-b5e096337c5516fece2c21d813c8534ac541f2a0.tar.xz
[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 <junkio@cox.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
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