summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 062d671)
raw | patch | inline | side by side (parent: 062d671)
author | Alex Riesen <raa.lkml@gmail.com> | |
Sun, 29 Jul 2007 20:29:45 +0000 (22:29 +0200) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 12 Aug 2007 07:30:57 +0000 (17:30 +1000) |
This is to help people starting gitk from graphical file managers where
the stderr output is hidden.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
the stderr output is hidden.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index b0a76dd225bc453ce177ce81bfe7216588ca80dd..769c79ab07520d5bcdad9493ab383553d2031988 100755 (executable)
--- a/gitk
+++ b/gitk
font create optionfont -family sans-serif -size -12
# check that we can find a .git directory somewhere...
-set gitdir [gitdir]
+if {[catch {set gitdir [gitdir]}]} {
+ show_error {} . "Cannot find a git repository here."
+ exit 1
+}
if {![file isdirectory $gitdir]} {
show_error {} . "Cannot find the git directory \"$gitdir\"."
exit 1