* env GIT_WORK_TREE ignored by git describe --dirty
[not found] <CANMbfiuUHxkw822AvA+y0cJ+ao=pcrza7w4fgMn7vVx8AZqCwQ@mail.gmail.com>
@ 2019-01-26 0:52 ` Moocowmoo .
2019-01-28 18:19 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Moocowmoo . @ 2019-01-26 0:52 UTC (permalink / raw)
To: git
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
ubuntu@wrk:~/tmp$ cd go-ipfs
ubuntu@wrk:~/tmp/go-ipfs$ GIT_DIR=/home/ubuntu/tmp/go-ipfs/.git
GIT_WORK_TREE=/home/ubuntu/tmp/go-ipfs git describe --dirty
v0.4.18-381-gca77ecc76
workaround:
use -C arg instead of GIT_WORK_TREE
git -C /path/to/work/directory describe --dirty
v0.4.18-381-gca77ecc76
I tried to find the issue, but git's code isn't easy to grok in a few minutes.
Thanks to osse and gxt for their help!
moocowmoo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: env GIT_WORK_TREE ignored by git describe --dirty
2019-01-26 0:52 ` env GIT_WORK_TREE ignored by git describe --dirty Moocowmoo .
@ 2019-01-28 18:19 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2019-01-28 18:19 UTC (permalink / raw)
To: Moocowmoo .; +Cc: git
On Fri, Jan 25, 2019 at 07:52:24PM -0500, Moocowmoo . wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-28 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CANMbfiuUHxkw822AvA+y0cJ+ao=pcrza7w4fgMn7vVx8AZqCwQ@mail.gmail.com>
2019-01-26 0:52 ` env GIT_WORK_TREE ignored by git describe --dirty Moocowmoo .
2019-01-28 18:19 ` Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).