[feature request] support git worktree

Timeline

Yongwen Zhuang (zYeoman) opened

When attempting to run git-bug within a git worktree directory, the following error message appears:

❯ git bug ls
Error: .git exists but is not a directory

In this scenario, the .git file is actually a text file that holds the worktree information:

❯ cat .git
gitdir: /home/username/codebase/.git/worktrees/codebase1

Yongwen Zhuang (zYeoman) commented

Oh, I just realized that the feature is already supported on the master branch, but it hasn't been included in the release yet.

Yongwen Zhuang (zYeoman) closed the bug