flake8
passed.
JSHint
passed.
Review Request #10771 — Created Oct. 30, 2019 and discarded
The issue is that setup-repo retrives repositories in pages After each page retrieved rbt checks if any of the repositories matching current and if not asks user question about inexact matches if exact match not found, and this create problem when exact match will be on subsequent page Resolution to the problem is to retrieve complete repository list 1st and after that look for match to the current path, this way exact match will be found regardless which page it's on Improved git repository path matching to RB server 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 ':'