Skip to content

Add support for detached heads, preventing fatal error.#6

Open
kaecyra wants to merge 6 commits intokzykhys:masterfrom
kaecyra:master
Open

Add support for detached heads, preventing fatal error.#6
kaecyra wants to merge 6 commits intokzykhys:masterfrom
kaecyra:master

Conversation

@kaecyra
Copy link

@kaecyra kaecyra commented May 15, 2014

Previously, if a repo was in detached head mode (git checkout ), the branch parser would trigger a fatal error when trying to access the 'current' key. I adjusted the regex slightly to account for the "(no branch)" output and now the code parses successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant