commit | 44a158445e6082b3a1778a2f6333167432d9bae5 | [log] [download] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Mon Jan 07 09:39:05 2013 -0800 |
committer | Dave Borowitz <dborowitz@google.com> | Mon Jan 07 11:21:47 2013 -0800 |
tree | 495a4c2b5b4dc7bf3600c62b1735c1d889f3d6d6 | |
parent | 5f7e8b734d02632c277014dc5dcfb06208e8432b [diff] |
Avoid IllegalArgumentException when auto-diving in root paths The checkArgument() call in GitilesView.getBreadcrumbs(List<Boolean>) is intended to avoid programmer error due to the subtle relationship between hasSingleTree and the view's path. In fact, the check was incorrectly failing when browsing root paths like "/+/master/". Change the check to fix that case. Change-Id: I1a1f8b57d5d16b45ec4da32afaf2009936486787