{"thread":{"id":"50323","subject":"env GIT_WORK_TREE ignored by git describe --dirty","startedAt":"2019-01-26T00:53:03Z","lastAt":"2019-01-28T18:19:13Z","messageCount":2,"participants":["Moocowmoo .","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"367698","messageId":"CANMbfitE+5HLo1sMowr5erJGwzLVv3Z9sHKEgvOeso5OeWVrBg@mail.gmail.com","threadId":"50323","inReplyTo":"CANMbfiuUHxkw822AvA+y0cJ+ao=pcrza7w4fgMn7vVx8AZqCwQ@mail.gmail.com","subject":"env GIT_WORK_TREE ignored by git describe --dirty","fromName":"Moocowmoo .","fromEmail":"moocowmoo@masternode.me","sentAt":"2019-01-26T00:52:24Z","receivedAt":"2019-01-26T00:53:03Z","isPatch":false,"sender":{"key":"moocowmoo@masternode.me","avatar":null},"body":"git describe --dirty shows dirty when cwd not repo work directory.\n\nConfirmed by osse on freenode irc #git\n\n  ubuntu@wrk:~/tmp$ pwd\n  /home/ubuntu/tmp\n  ubuntu@wrk:~/tmp$ git clone https://github.com/ipfs/go-ipfs.git\n  ubuntu@wrk:~/tmp$ GIT_DIR=/home/ubuntu/tmp/go-ipfs/.git\nGIT_WORK_TREE=/home/ubuntu/tmp/go-ipfs git describe --dirty\n  v0.4.18-381-gca77ecc76-dirty\n\n  ubuntu@wrk:~/tmp$ cd go-ipfs\n  ubuntu@wrk:~/tmp/go-ipfs$ GIT_DIR=/home/ubuntu/tmp/go-ipfs/.git\nGIT_WORK_TREE=/home/ubuntu/tmp/go-ipfs git describe --dirty\n  v0.4.18-381-gca77ecc76\n\nworkaround:\nuse -C arg instead of GIT_WORK_TREE\n  git -C /path/to/work/directory describe --dirty\n  v0.4.18-381-gca77ecc76\n\nI tried to find the issue, but git's code isn't easy to grok in a few minutes.\nThanks to osse and gxt for their help!\n\nmoocowmoo\n"},{"id":"367850","messageId":"20190128181908.GA11337@sigill.intra.peff.net","threadId":"50323","inReplyTo":"CANMbfitE+5HLo1sMowr5erJGwzLVv3Z9sHKEgvOeso5OeWVrBg@mail.gmail.com","subject":"Re: env GIT_WORK_TREE ignored by git describe --dirty","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-01-28T18:19:08Z","receivedAt":"2019-01-28T18:19:13Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Jan 25, 2019 at 07:52:24PM -0500, Moocowmoo . wrote:\n\n> git describe --dirty shows dirty when cwd not repo work directory.\n> \n> Confirmed by osse on freenode irc #git\n> \n>   ubuntu@wrk:~/tmp$ pwd\n>   /home/ubuntu/tmp\n>   ubuntu@wrk:~/tmp$ git clone https://github.com/ipfs/go-ipfs.git\n>   ubuntu@wrk:~/tmp$ GIT_DIR=/home/ubuntu/tmp/go-ipfs/.git\n> GIT_WORK_TREE=/home/ubuntu/tmp/go-ipfs git describe --dirty\n>   v0.4.18-381-gca77ecc76-dirty\n\nIt sounds like this this is the same bug being discussed in:\n\n  https://public-inbox.org/git/20190126204951.42455-1-koraktor@gmail.com/\n\n-Peff\n"}]}