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

Re: env GIT_WORK_TREE ignored by git describe --dirty

From
Jeff King <peff@peff.net>
Date
Jan 28, 2019, 18:19 UTC
Message-ID
<20190128181908.GA11337@sigill.intra.peff.net>
In-Reply-To
<CANMbfitE+5HLo1sMowr5erJGwzLVv3Z9sHKEgvOeso5OeWVrBg@mail.gmail.com>
On Fri, Jan 25, 2019 at 07:52:24PM -0500, Moocowmoo . wrote:
Show 10 quoted lines
> git describe --dirty shows dirty when cwd not repo work directory.
> 
> Confirmed by osse on freenode irc #git
> 
>   ubuntu@wrk:~/tmp$ pwd
>   /home/ubuntu/tmp
>   ubuntu@wrk:~/tmp$ git clone https://github.com/ipfs/go-ipfs.git
>   ubuntu@wrk:~/tmp$ GIT_DIR=/home/ubuntu/tmp/go-ipfs/.git
> GIT_WORK_TREE=/home/ubuntu/tmp/go-ipfs git describe --dirty
>   v0.4.18-381-gca77ecc76-dirty
It sounds like this this is the same bug being discussed in:
  https://public-inbox.org/git/20190126204951.42455-1-koraktor@gmail.com/
-Peff
Previous: Moocowmoo .
Message 2 of 2 in “env GIT_WORK_TREE ignored by git describe --dirty”
  1. Moocowmoo .Jan 26, 2019
  2. Jeff KingJan 28, 2019

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.