revparse: Lookup branch before described tag

Fix #1306