Doesn't parse ssh-aliased urls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-review |
Fix Released
|
Medium
|
Alexander Jones |
Bug Description
My fetch url is set to gerrit:cabs.git
My repositories .git/config has the remote:
[remote "gerrit"]
fetch = +refs/heads/
url = gerrit:cabs.git
Which uses my ~/.ssh/config entry:
Host gerrit
User jaxelson
Hostname rams-build-vm
Port 29418
IdentityFile ~/.ssh/id_common
It seems to be a bug/misuse of python's urlparse method which is given the input "gerrit:cabs.git". The parse result is:
ParseResult(
Which has gerrit as the scheme instead of the netloc. To remedy this you probably need to trust that the netloc can set the ssh settings necessary (such as the username and port).
An obvious workaround which I am just about to try is to use the .gitreview file instead which I will try in a few minutes and fully expect to resolve my problems
Changed in git-review: | |
assignee: | Monty Taylor (mordred) → nobody |
status: | Triaged → Incomplete |
Changed in git-review: | |
status: | Fix Committed → Fix Released |
assignee: | nobody → Alexander Jones (alex-weej) |
Oh bother. Thanks. Using the .gitreview file will totally work - BUT, I would like to appropriately handle this case, since it's totally valid for someone to already have a gerrit remote set up.