git-pw fails to get the config in a worktree setup
By using dim to create the checkout of the kernel tree, I have the following dir structure:
[ldmartin@ldmartin-desk1 src]$ git worktree list
linux-dim/src 4fd955732d1e [tip-tgl-batch3-v2]
linux-dim/drm-intel-fixes d7e8a19b38c8 [drm-intel-fixes]
linux-dim/drm-intel-next a17ce803dffa [drm-intel-next]
linux-dim/drm-intel-next-fixes c36beba6b296 [drm-intel-next-fixes]
linux-dim/drm-intel-next-queued 5cad0ddf4b78 [drm-intel-next-queued]
linux-dim/drm-misc-fixes 2f040d27080d [drm-misc-fixes]
linux-dim/drm-misc-next 1e9907362453 [drm-misc-next]
linux-dim/drm-misc-next-fixes 7aaddd96d5fe [drm-misc-next-fixes]
linux-dim/drm-rerere bf599a557a56 [rerere-cache]
linux-dim/drm-tip 40ef4755f8a1 [drm-tip]
linux-dim/topic/core-for-CI 3acdd1462f96 [topic/core-for-CI]
linux-dim/topic/remove-fbcon-notifiers 6116b892bd4f [topic/remove-fbcon-notifiers]
src
is the "main tree".
This works:
[ldmartin@ldmartin-desk1 src]$ cd src
[ldmartin@ldmartin-desk1 src]$ git config --get patchwork.default.project
intel-gfx
This works:
[ldmartin@ldmartin-desk1 src]$ cd drm-intel-next-queued
[ldmartin@ldmartin-desk1 drm-intel-next-queued]$ git config --get patchwork.default.project
intel-gfx
This doesn't:
[ldmartin@ldmartin-desk1 drm-intel-next-queued]$ git pw mbox 63670
fatal: git-pw isn't configured.
Please set up the patchwork url and project, e.g.:
git config patchwork.default.url https://patchwork.freedesktop.org
git config patchwork.default.project intel-gfx
It seems to be a bug in GitPython to get the config in a worktree setup?