#29 Fix getting current branch
Merged by lsedlar. Opened by lsedlar.
lsedlar/pag pull-request  into  develop

Download 29.patch

Running git branch --contains returns all branches that contain current commit. There can be multiple branches like that, which results in garbage value being returned.

New implementation will return the branch that git thinks is checked out currently. It will report detached HEAD state properly.

Pull-Request has been merged by lsedlar

Metadata