Community
Participate
Working Groups
I'm trying to use the clone operation. When I use SSH (without a user specified), jgit tries to be smart and add my current user (CredentialsProviderUserInfo#createURI() which is called from the CredentialsProviderUserInfo constructor). However, I don't want to use the current user, I want to be prompted. When this fails, the credential provider shows me a username / password dialog. However, because it 'thinks' it knows the right user, it sets the field to read-only. I did try to hack this and make this field editable, but it seems a little more complicated than that (we need to update the URI it's using now because the username is wrong).
This can be easily seen by: 1. Go to the Git Repository View 2. Clone a repo 3. Use ssh://foo.com/foo 4. Don't enter any username 5. Hit next It will try to connect, and since it can't it will prompt for a username / password. However, the username will be READONLY. Obviously in this case you could go back to the first page and enter a username, but that's not an option when you just use the clone operation. Is there a reason that JschConfigSessionFactory forces the current user if none is set?
Ping... any thoughts on this? Having non-editable user names and assuming that everyone has the same username everywhere is real problem. Or is there something I'm missing?