Skip to content

submodules are confused with worktrees #127

@00sapo

Description

@00sapo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions