4792: Index out of range error on get branches


Hi, while using rb-gateway with Mercurial repositories, I found out that when you try do a "get branches" and the repository doesn't have any bookmarks, this line Id: fields[1], (line 182) in repositories/hg.go method GetBranches(), causes an index out of range error.

#1 david

Up for review at https://reviews.reviewboard.org/r/10401/

  • -New
#2 david

Fixed in release-1.0.x (3ba52ab). This will ship in 1.0.1. Thanks!

  • -PendingReview