Enter a git submodule, launch opencode, then try to create a worktree:
> # worktree [target=newtests, workdir=/home/federico/Develop/Laudare/docker-files/LaudareConverter]
> Already in a worktree.
> Create new worktrees from the main repository, not from within another worktree.
worktree call executed with:
- target: newtests
- workdir: /home/federico/Develop/Laudare/docker-files/LaudareConverter
Result:
- Already in a worktree
- New worktrees must be created from the main repository, not from inside an existing worktree
If you want, I can locate the main repo path and run the worktree command from there.
Enter a git submodule, launch opencode, then try to create a worktree: