I have a keypair for github, and as I would rather not put the passphrase in settings.xml I am trying out the recently added ssh-agent support. It works partially: my agent does prompt me for the passphrase, and the clone/fetch succeeds ... but then the push does not.
After some poking around, I think what's going on is that getGit was changed to call setTransportConfigCallback on the cloneRepository command object, but closeConnection may also need be changed to do that on the push command object too.
I'm going to get some sleep before I actually try that to see if it does the trick.
I have a keypair for github, and as I would rather not put the passphrase in
settings.xml
I am trying out the recently addedssh-agent
support. It works partially: my agent does prompt me for the passphrase, and the clone/fetch succeeds ... but then the push does not.After some poking around, I think what's going on is that
getGit
was changed to callsetTransportConfigCallback
on thecloneRepository
command object, butcloseConnection
may also need be changed to do that on thepush
command object too.I'm going to get some sleep before I actually try that to see if it does the trick.