ghooks-org/ghooks

Compatibility with git worktrees

Closed this issue · 0 comments

git allows to create more than one worktree connected to the same repository (.git/) via the git worktree command.

In each of this worktree there is a .git file containing the path to a directory inside the main .git/, e.g.:

gitdir: /home/julien-f/dev/my-project/.git/worktrees/my-branch

This is something of an edge case so I would understand if you do not want to support it :)