Skip to content

How to get branch name on detached head? #343

Closed
@sirvon

Description

@sirvon

I'm getting this error frequently....

TypeError: HEAD is a detached symbolic reference as it points to XXXXXXXXX

No way to avoid it, as I'm not in control of the system at hand.

But I still need the branch name.

Is there anyway to get the branch name even with a detached head?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions