{"thread":{"id":"63654","subject":"Bug: Paths are wrong when --work-tree is an ancestor path","startedAt":"2025-06-16T19:36:56Z","lastAt":"2025-06-16T19:36:56Z","messageCount":1,"participants":["Serdar Sanli"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"520294","messageId":"CAM90XXeOic7c4FdWpjnqn2upcBmRQGRUFzR5vSeBP+=1cPErQQ@mail.gmail.com","threadId":"63654","inReplyTo":null,"subject":"Bug: Paths are wrong when --work-tree is an ancestor path","fromName":"Serdar Sanli","fromEmail":"mserdarsanli@gmail.com","sentAt":"2025-06-16T19:36:44Z","receivedAt":"2025-06-16T19:36:56Z","isPatch":false,"sender":{"key":"mserdarsanli@gmail.com","avatar":null},"body":"I have /tmp/dir1/foo.txt and /tmp/dir2/foo.txt and a repo at\n/tmp/dir2/path/to/repo\n\nFrom the repo if I do `git --work-tree /tmp/dir1 status` I see\n`foo.txt` listed as an untracked file, as expected.\nBut if I do `git --work-tree /tmp/dir2 status`, I see\n`../../../foo.txt` shown instead, rather than `foo.txt`.\n\nCan't see anything relevant in worktree documentation, this looks like a bug?\n"}]}