From: Alex Riesen Date: Sun, 29 Jul 2007 20:28:40 +0000 (+0200) Subject: [PATCH] gitk: Continue and show error message in new repos X-Git-Tag: v1.5.3-rc5~24^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=062d671f57a422863416ee4c746ef74c1cc45c19;p=git.git [PATCH] gitk: Continue and show error message in new repos If there is no commit made yet, gitk just dumps a Tcl error on stderr, which sometimes is hard to see. Noticed when gitk was run from Xfce file manager (thunar's custom action). Signed-off-by: Alex Riesen Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 900038323..b0a76dd22 100755 --- a/gitk +++ b/gitk @@ -427,7 +427,7 @@ proc readrefs {} { lappend idotherrefs($id) $name } } - close $refd + catch {close $refd} set mainhead {} set mainheadid {} catch {