-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix retrieving git worktree path #1008
Conversation
Thanks for reporting @bart-jaskulski. Configured myself some worktrees locally to see what is going on exactly. |
@bart-jaskulski Got any time to look at the comments I added above? Is there anything else I can do to get this merged? |
We notices this PR became inactive. If you wish to continue, feel free to pick it up again. |
d83c48b
to
caabb1d
Compare
Sorry, that I left this PR dangling 💦 I will complete this by the end of the week 🙏 |
Signed-off-by: Bart Jaskulski <[email protected]>
@bart-jaskulski Thanks, this looks very nice! Is it ready for merge or is there still something missing? |
Absolutely ready 💪 |
@veewee Actually, I've made a bad assumption previously submitting PR (#1003) for git worktree path - git does store absolute path in
.git
file, but that's absolute path to the current worktree, while hooks are fired from common worktree root directory.The hierarchy looks something like:
With current patch, we are actually getting absolute path to worktree and reading the path from
commondir
file, which usually points up in hierarchy, to the root of git directory.