Skip to content

Repo can not be found when executed in git worktree #50

@LukasFritzeDev

Description

@LukasFritzeDev

When using git worktrees, the command fails with the following error:

> git-semver
failed to retrieve repo head: reference not found

My setup is as follows

> git worktree list
/Users/lfritze/services/my-service         3431fb59 [feature/a]
/Users/lfritze/services/my-service-master  7af8d7f9 [master]
  • /Users/lfritze/services/my-service holds the repo and is the main working tree
  • /Users/lfritze/services/my-service-master is an additional working tree
  • current directory is the additional working tree /Users/lfritze/services/my-service-master

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