revparse: Lookup branch before described tag

Fix #1306
revparse: Lookup sha before branch