git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Detecting GIT_DIR runtime

From
Jeff King <peff@peff.net>
Date
May 5, 2010, 18:14 UTC
Message-ID
<20100505181420.GB1556@coredump.intra.peff.net>
In-Reply-To
<4BE1A2C9.6010408@dbservice.com>
On Wed, May 05, 2010 at 06:54:33PM +0200, Tomas Carnecky wrote:
Show 12 quoted lines
> On 5/5/10 5:38 PM, Mahesh Vaidya wrote:
> >I have a tree like
> >/home/mvaidya/WORKSPACE/nvos/mvaidya-master-100.local/some/folder
> >
> >I would like to issue come command say "git fetch" from any level of
> >the tree. How can I deduce path of .git folder. Reason I need it as I
> >some application configuration saved in .git/workspace.properties and
> >I need to some action before git fetch.
> >
> 
> Take a look at:
> $ git rev-parse --cdup
Or even "git rev-parse --git-dir".
-Peff
Previous: Tomas Carnecky
Message 3 of 3 in “Detecting GIT_DIR runtime”
  1. Mahesh VaidyaMay 5, 2010
  2. Tomas CarneckyMay 5, 2010
  3. Jeff KingMay 5, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.