Skip to content

beman-tidy does not work with git worktrees #186

@steve-downey

Description

@steve-downey

When using git worktrees a standard tool for working with multiple checked out branches at once, beman-tidy fails with

sdowney@pwyll:~/src/infra/tools/beman-tidy/beman_tidy (main ♥)
$ uv run beman-tidy ~/src/bemanproject/exemplar/exemplar.git --require-all --verbose
An error occurred while getting repository information. Check /home/sdowney/src/bemanproject/exemplar/exemplar.git.

or

sdowney@pwyll:~/src/infra/tools/beman-tidy/beman_tidy (main ♥)
$ uv run beman-tidy ~/src/bemanproject/exemplar/main --require-all --verbose
An error occurred while getting repository information. Check /home/sdowney/src/bemanproject/exemplar/main.

when pointing at either the bare main repository or the worktree.

This might be a limitation in the GitPython module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions