Skip to content
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: add support for worktree #128

Open
wants to merge 1 commit into
base: beta
Choose a base branch
from

Conversation

conradob
Copy link

@conradob conradob commented Apr 29, 2024

When working with git worktree, the Git folder path is different between worktrees and the main tree.

Main working dir:

$ git rev-parse --git-common-dir
.git

Worktree:

git rev-parse --git-common-dir
/Users/some_user/projects/mookme

This PR intends to add support for git worktree by getting the git directory from the git rev-parse --git-common-dir command.

When dealing with the main working directory, it is important to handle the absolute path.

Close #127

@conradob conradob marked this pull request as ready for review April 29, 2024 13:58
@robert-melonn
Copy link

@conradob is this project abandoned or deprecated? Im seeing some opened issues and prs. I want to try hookme for my organization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mookme does not work with git worktree
2 participants