{"thread":{"id":"58878","subject":"git-worktree-list reporting wrong directory","startedAt":"2022-11-30T20:34:47Z","lastAt":"2022-11-30T20:34:47Z","messageCount":1,"participants":["Erik Aigner"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"468283","messageId":"A0CB7B70-8EB2-464E-9BF9-320FC6EC3C44@bytieful.com","threadId":"58878","inReplyTo":null,"subject":"git-worktree-list reporting wrong directory","fromName":"Erik Aigner","fromEmail":"erik@bytieful.com","sentAt":"2022-11-30T20:33:54Z","receivedAt":"2022-11-30T20:34:47Z","isPatch":false,"sender":{"key":"erik@bytieful.com","avatar":null},"body":"Thank you for filling out a Git bug report!\nPlease answer the following questions to help us understand your issue.\n\nWhat did you do before the bug happened? (Steps to reproduce your issue)\n\n- Create a repository containing a submodule\n- `cd` to the submodules directory\n- run `git worktree list`\n\nWhat did you expect to happen? (Expected behavior)\n\n- The current directory is reported as the worktree\n\nWhat happened instead? (Actual behavior)\n\n- Instead the `/path/to/repo/.git/modules/reposubmodule` directory is listed as a worktree\n\nWhat's different between what you expected and what actually happened?\n\nThe `/path/to/repo/.git/modules/reposubmodule` is the repository path, not the worktree path.\n\nAnything else you want to add:\n\n-\n\nPlease review the rest of the bug report below.\nYou can delete any lines you don't wish to share.\n\n\n[System Info]\ngit version:\ngit version 2.37.1 (Apple Git-137.1)\ncpu: arm64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nfeature: fsmonitor--daemon\nuname: Darwin 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:52 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8112 arm64\ncompiler info: clang: 14.0.0 (clang-1400.0.29.202)\nlibc info: no libc information available\n$SHELL (typically, interactive shell): /bin/zsh\n\n\n[Enabled Hooks]\npre-commit\n\n\n"}]}