Fix bugs in parsing repo URL
Merge pull request #15 from hundt/gerrit

Fix bugs in parsing repo URL