Skip to content

Detached HEAD appears in "git iswitch" output but cannot be selected #8

Description

@openjck

Steps to reproduce

  1. git checkout HEAD~
  2. git iswitch

Actual result

The selectable list of branches which can be selected includes the following:

(HEAD detached at [sha])

Selecting it prints:

fatal: invalid reference: (HEAD detached at [sha])

Expected result

This selectable list of branches does not include the following:

(HEAD detached at [sha])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions