Open vigneshraman opened 2 years ago
I'm trying to add a worktree with
_pygit2.add_worktree(name, path, _pygit2.lookup_reference(ref))
ref is fetched using _pygit2.raw_listall_references(). This works for bare git repo.
_pygit2.raw_listall_references()
In case of non-bare git repo, it fails with, _pygit2.GitError: reference is not a branch
_pygit2.GitError: reference is not a branch
I'm trying to add a worktree with
ref is fetched using
_pygit2.raw_listall_references()
. This works for bare git repo.In case of non-bare git repo, it fails with,
_pygit2.GitError: reference is not a branch