On Mon, Dec 12, 2022 at 03:55:42PM -0500, Jeff King wrote: > > Is there a debug command which can show if the gitdir is/isn't > > matching like I thought it should? What other command output could > > help debug this? > > No, there's no debug/tracing code for this feature. You'd have to run it > under gdb (break on the include_by_gitdir function). Oh, one other command you could try: git rev-parse --absolute-git-dir while in the repository in question. I think that would do the same normalization of the path (including resolving symlinks). So that would tell you what Git should be matching against. -Peff