public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* describe with --git-dir and --dirty outside of the repo always says dirty
@ 2026-03-13 19:02 Thomas Braun
  2026-03-13 20:29 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Braun @ 2026-03-13 19:02 UTC (permalink / raw)
  To: GIT Mailing-list

When I do

git describe --dirty

in clean repo of git.git I get

v2.53.0-522-g67006b9db8

but when I do it from outside of the repo

cd ..
git --git-dir=git/.git describe --dirty

I get

v2.53.0-522-g67006b9db8-dirty

Curiously I can workaround the issue by directly passing the work-tree

git --work-tree=git --git-dir=git/.git describe --dirty

I suspect 2ed5c8e174 (describe: setup working tree for --dirty, 
2019-02-03) has something to do with that.

Where should I start digging for a fix?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-18 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 19:02 describe with --git-dir and --dirty outside of the repo always says dirty Thomas Braun
2026-03-13 20:29 ` Junio C Hamano
2026-03-16  8:22   ` Patrick Steinhardt
2026-03-18 17:33     ` Thomas Braun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox