Improved git repository path matching to RB server

Review Request #10772 — Created Oct. 30, 2019 and updated

Information

RBTools
release-1.0.x
09c5eb6...

Reviewers

The issue is that git url is different depending on which clone
method is used, as a result RB sometimes cannot match path,
especially when repository list is very long

This change git repository normalizes path to minimize the mismatches

For the rbtools repository the following cloning URLs are possible:
ssh://git@github.com:reviewboard/rbtools.git
ssh://git@github.com/reviewboard/rbtools.git - for repo tool
https://github.com/reviewboard/rbtools.git

In automatic mode server stores repository path as:
git@github.com:reviewboard/rbtools.git

As such we attempt to normalize the URL when converting to path
- Remove protocol (https://, ssh://) server does not store it
- Replace 1st seprator ':' or '/' with ':'

 
Checks run (2 succeeded)
flake8 passed.
JSHint passed.