@matheusbsbs / matheus-bagliano / commits / 062d671f57
Fork 0

[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>

Alex Riesen committed Jul 29, 2007 at 22:28 UTC 062d671f57a422863416ee4c746ef74c1cc45c19
1 file changed +1 -1
gitk
+1 -1
@@ -427,7 +427,7 @@ proc readrefs {} {
427 lappend idotherrefs($id) $name
428 }
429 }
430 - close $refd
430 + catch {close $refd}
431 set mainhead {}
432 set mainheadid {}
433 catch {