{"thread":{"id":"23711","subject":"Detecting GIT_DIR runtime","startedAt":"2010-05-05T15:38:00Z","lastAt":"2010-05-05T18:14:20Z","messageCount":3,"participants":["Mahesh Vaidya","Tomas Carnecky","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140996","messageId":"t2gb42431c81005050838w425412d9jfe176c3b637e77c1@mail.gmail.com","threadId":"23711","inReplyTo":null,"subject":"Detecting GIT_DIR runtime","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-05-05T15:38:00Z","receivedAt":"2010-05-05T15:38:00Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"I have a tree like\n/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder\n\nI would like to issue come command say \"git fetch\" from any level of\nthe tree. How can I deduce path of .git folder. Reason I need it as I\nsome application configuration saved in .git/workspace.properties and\nI need to some action before git fetch.\n\n\n\n-- \nThank you and best regards.\nMahesh Vaidya  / 9740500144\nhttp://www.twitter.com/forvaidya\n"},{"id":"141000","messageId":"4BE1A2C9.6010408@dbservice.com","threadId":"23711","inReplyTo":"t2gb42431c81005050838w425412d9jfe176c3b637e77c1@mail.gmail.com","subject":"Re: Detecting GIT_DIR runtime","fromName":"Tomas Carnecky","fromEmail":"tom@dbservice.com","sentAt":"2010-05-05T16:54:33Z","receivedAt":"2010-05-05T16:54:33Z","isPatch":false,"sender":{"key":"tom@dbservice.com","avatar":"https://gravatar.com/avatar/900a300bdd1a8bbe086008ad78210bbee2ad2803b7d50a5cba04c1e9404bd6d2?d=mp&s=160"},"body":"On 5/5/10 5:38 PM, Mahesh Vaidya wrote:\n> I have a tree like\n> /home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder\n>\n> I would like to issue come command say \"git fetch\" from any level of\n> the tree. How can I deduce path of .git folder. Reason I need it as I\n> some application configuration saved in .git/workspace.properties and\n> I need to some action before git fetch.\n>\n\nTake a look at:\n$ git rev-parse --cdup\n\ntom\n"},{"id":"141002","messageId":"20100505181420.GB1556@coredump.intra.peff.net","threadId":"23711","inReplyTo":"4BE1A2C9.6010408@dbservice.com","subject":"Re: Detecting GIT_DIR runtime","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2010-05-05T18:14:20Z","receivedAt":"2010-05-05T18:14:20Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 05, 2010 at 06:54:33PM +0200, Tomas Carnecky wrote:\n\n> On 5/5/10 5:38 PM, Mahesh Vaidya wrote:\n> >I have a tree like\n> >/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder\n> >\n> >I would like to issue come command say \"git fetch\" from any level of\n> >the tree. How can I deduce path of .git folder. Reason I need it as I\n> >some application configuration saved in .git/workspace.properties and\n> >I need to some action before git fetch.\n> >\n> \n> Take a look at:\n> $ git rev-parse --cdup\n\nOr even \"git rev-parse --git-dir\".\n\n-Peff\n"}]}