aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-07-29 22:28:40 +0200
committerPaul Mackerras <paulus@samba.org>2007-08-12 17:30:57 +1000
commit062d671f57a422863416ee4c746ef74c1cc45c19 (patch)
tree985744a815bab9ffe22bfdf2d51aafb7129fd221 /gitk
parent314c30936f505f70534c619a48d99afb93451cb2 (diff)
downloadgit-062d671f57a422863416ee4c746ef74c1cc45c19.tar.gz
git-062d671f57a422863416ee4c746ef74c1cc45c19.tar.xz
[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 <raa.lkml@gmail.com> 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 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 {