{"thread":{"id":"7472","subject":"Problem with gitk on cygwin","startedAt":"2007-03-29T10:21:42Z","lastAt":"2007-03-30T07:36:22Z","messageCount":3,"participants":["Raimund Bauer","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"38305","messageId":"000001c771ec$12729c30$0b0aa8c0@abf.local","threadId":"7472","inReplyTo":null,"subject":"Problem with gitk on cygwin","fromName":"Raimund Bauer","fromEmail":"ray007@gmx.net","sentAt":"2007-03-29T10:21:42Z","receivedAt":"2007-03-29T10:21:42Z","isPatch":false,"sender":{"key":"ray007@gmx.net","avatar":null},"body":"When trying to use gitk from current cygwin-install, I get an error-dialog\nand no gitk-window.\n\nError title: \"Error in startup script\"\nError message:\n--------------------------------\n.git\n    8 [main] git 1620 tty_list::allocate: No tty allocated while executing\n\"exec git rev-parse --git-dir\"\n  (procedure \"gitdir\" line 6)\n  invoked from within\n\"gitdir\"\n  invoked from within\n\"set gitdir [gitdir]\"\n  (file  \"/usr/bin/gitk\" line 6270)\n--------------------------------\n\nSetting the environment variable GIT_DIR produced a slightly different\nerror, but didn't help.\nThe new error message is:\n--------------------------------\n    6 [main] git 1268 tty_list::allocate: No tty allocated while executing\n\"close $refd\"\n  (procedure \"readrefs\" line 47)\n  invoked from within\n\"readrefs\"\n  (file \"/usr/bin/gitk\" line 6325)\n--------------------------------\n\nDid I forget to install some cygwin package (and it's only a problem of\ncygwin dependencies), or does gitk on cygwin have a problem currently?\n\n-- \nbest regards\n\n  Ray\n"},{"id":"38374","messageId":"20070330052533.GQ13247@spearce.org","threadId":"7472","inReplyTo":"000001c771ec$12729c30$0b0aa8c0@abf.local","subject":"Re: Problem with gitk on cygwin","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-03-30T05:25:33Z","receivedAt":"2007-03-30T05:25:33Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Raimund Bauer <ray007@gmx.net> wrote:\n> When trying to use gitk from current cygwin-install, I get an error-dialog\n> and no gitk-window.\n> \n> Error title: \"Error in startup script\"\n> Error message:\n> --------------------------------\n> .git\n>     8 [main] git 1620 tty_list::allocate: No tty allocated while executing\n> \"exec git rev-parse --git-dir\"\n>   (procedure \"gitdir\" line 6)\n>   invoked from within\n> \"gitdir\"\n>   invoked from within\n> \"set gitdir [gitdir]\"\n>   (file  \"/usr/bin/gitk\" line 6270)\n> --------------------------------\n\nI have seen this failure before, and its usually a result of having\nyour CYGWIN environment variable including 'notty':\n\n  http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html\n\nOr maybe its the opposite.  I don't have access to my Cygwin system\nright now, so I cannot check if I have notty, tty, or just ommitted\nit entirely from my CYGWIN environment varible.  But I think that's\nthe issue.\n\n-- \nShawn.\n"},{"id":"38376","messageId":"000201c7729e$1d7c40b0$0b0aa8c0@abf.local","threadId":"7472","inReplyTo":"20070330052533.GQ13247@spearce.org","subject":"RE: Problem with gitk on cygwin","fromName":"Raimund Bauer","fromEmail":"ray@softwarelandschaft.com","sentAt":"2007-03-30T07:36:22Z","receivedAt":"2007-03-30T07:36:22Z","isPatch":false,"sender":{"key":"ray@softwarelandschaft.com","avatar":null},"body":"> From: spearce@spearce.org [mailto:spearce@spearce.org] \n> \n> I have seen this failure before, and its usually a result of \n> having your CYGWIN environment variable including 'notty':\n> \n>   http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html\n> \n> Or maybe its the opposite.  I don't have access to my Cygwin \n> system right now, so I cannot check if I have notty, tty, or \n> just ommitted it entirely from my CYGWIN environment varible. \n>  But I think that's the issue.\n\nThanks a lot, that was the right pointer, even if I don't\nunderstand what went wrong.\nMy CYGWIN environment variable was set to \"ntsec tty\", and after\ndoing a \nexport CYGWIN=ntsec\nin the shell (which according to your link shouldn't change\nanything) gitk magically started working!\n\n> Shawn.\n\nThank you very much my saviour, now I can use gitk in office too ;-)\n\n-- \nbest regards\n\n  Ray \n"}]}