{"thread":{"id":"9296","subject":"[PATCH] Allow gitk to continue and show error message in new repos","startedAt":"2007-07-29T20:28:40Z","lastAt":"2007-07-29T20:28:40Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"49008","messageId":"20070729202840.GA9362@steel.home","threadId":"9296","inReplyTo":null,"subject":"[PATCH] Allow gitk to continue and show error message in new repos","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-07-29T20:28:40Z","receivedAt":"2007-07-29T20:28:40Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"If there is no commit made yet, gitk just dumps a Tcl error on stderr,\nwhich sometimes is hard to see. Noticed when gitk was run from Xfce\nfile manager (thunar's custom action).\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n gitk |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex f74ce51..fc7cc8c 100755\n--- a/gitk\n+++ b/gitk\n@@ -427,7 +427,7 @@ proc readrefs {} {\n \t    lappend idotherrefs($id) $name\n \t}\n     }\n-    close $refd\n+    catch { close $refd }\n     set mainhead {}\n     set mainheadid {}\n     catch {\n-- \n1.5.3.rc3.48.g5b618\n"}]}