PHPGit icon indicating copy to clipboard operation
PHPGit copied to clipboard

Add support for detached heads, preventing fatal error.

Open kaecyra opened this issue 10 years ago • 0 comments

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.

kaecyra avatar May 15 '14 18:05 kaecyra