提交 b5e09633 编写于 作者: J Junio C Hamano 提交者: Paul Mackerras

[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: NJunio C Hamano <junkio@cox.net>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 8974c6f9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册