FetchGerritChangePage: validate change ref a little more strictly
commit5389fe06703847fad6c39702d4fe571090a160d4
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 20 Jun 2017 11:04:29 +0000 (20 13:04 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 28 Jun 2017 07:24:48 +0000 (28 09:24 +0200)
tree5e8546f91c79aba45d2525c21f9d2a579b351c14
parentff82d4450518a7e98ecbc70ed778acf3592b926c
FetchGerritChangePage: validate change ref a little more strictly

In a change ref "refs/changes/dd/ccccc/ps", also validate that
dd == ccccc % 100. Otherwise bogus refs like "refs/changes/36/9777/1"
would pass.

AFAIK this behavior of Gerrit is not configurable. It's always % 100.

Change-Id: I1841f0f790dd48572d8975c582c2af520ce58eac
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/fetch/FetchGerritChangePage.java