Skip to content

git-old-branches tripped up by worktree #23

@jakkanen

Description

@jakkanen

Given following preparation:

git init /tmp/myrepo
cd /tmp/myrepo
date > file
git add file
git commit -m "frist"
git worktree add /tmp/myworktree

The git-old-branches command will print an unexpected error:

$ git old-branches
log + myworktree -1 --format=%at --fatal: bad revision '+'

The plus sign is mentioned in git-branch documentation:

Any branches checked out in linked worktrees will be highlighted in cyan and marked with a plus sign.

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