azzurris / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

repo doesn't consider port in ~/.ssh/config #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 1.6.8, at least.

What steps will reproduce the problem?
1. Enter an alias into ~/.ssh/config that configures the port to the 
gerrit ssh port, 29418
2. according to https://review.source.android.com/#change,9655 , unless a 
port is specified in the immediate URL, the port is set to port 22. This 
collides with the ssh/config setting, and seem to override it.
3. Run any repo command, repo init, repo sync and you will get a lot of 
password questions that go by in your output. You don't have to enter a 
password, it seems repo won't specify the port in every call. It is 
however annoying and confusing to see the password prompt during the sync 
operation.

> What is the expected output? What do you see instead?
I expect no password prompt like when the port is in the URL. :-)

> Please provide any additional information below.
Well, a new way to avoid the original python error when the port is empty 
needs to be figured out. But I haven't given that any thoughts at all.

This is obviosuly not very high prio either, it is not a fatal problem. 
But I do know of several users who have reported this problem.

Actually, this is probably true for any ssh config, even if it's system 
global. So, not only your personal config, but any others in your path too.

Original issue reported on code.google.com by fredrik....@sonyericsson.com on 26 Apr 2010 at 10:49