revparse: Lookup branch before described tag

Fix #1306
revparse: Lookup sha before branch
Merge pull request #1307 from nulltoken/fix/revparse_describe

revparse: Lookup branch before described tag