Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uprepo.active_branch raises TypeError "HEAD is a detached symbolic reference" #1060
Comments
One can argue that using exception to communicate there is no active branch (as opposed to say, Returning However, please feel free to propose or implement an alternative way of doing this via comments or a PR. Thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Accessing the repo.active_branch attribute fails In a repository where I previously checked out some earlier commit. Okay I can try...except to catch this, but IMHO this is unexpected behaviour.