Closed pigay closed 2 years ago
Hi,
I have a bare Repository from which I created a Worktree.
I get its index with
index = Index(os.path.join(repo.path, 'worktrees', worktree.name))
When I try to run
index.diff_to_workdir()
I get ValueError('diff needs an associated repository')
ValueError('diff needs an associated repository')
Is there a way to connect Worktree's index to its filesystem directory? Did I miss something?
I really missed something: just have to open worktree as a Repository...
Hi,
I have a bare Repository from which I created a Worktree.
I get its index with
When I try to run
I get
ValueError('diff needs an associated repository')
Is there a way to connect Worktree's index to its filesystem directory? Did I miss something?