Error when pushing [message #1377974] |
Fri, 23 May 2014 23:28  |
Eclipse User |
|
|
|
Hi everyone,
I use git so that I can work on the same versions of my projects from both my desktop and my laptop; it has worked great until now. I made a new project on my laptop and tried to push it to github and got this error:
(I have a forum restriction on links, please copy and paste, removing the extra space)
http:/ /pyraetos.net/capture.png
I was able to push it by zipping up the whole project and emailing it to myself, retrieving it on my desktop, importing it into the Eclipse workspace on my desktop, and pushing it from there. However, I am still unable to push this project on my laptop.
It's weird because my other projects work just fine from my laptop so I can't imagine having any unsatisfactory settings.
Thanks in advance for any ideas.
|
|
|
|
|
|
|
Re: Error when pushing [message #1384031 is a reply to message #1383913] |
Tue, 27 May 2014 21:22   |
Eclipse User |
|
|
|
Matthias Sohn wrote on Tue, 27 May 2014 03:25Here is a patch to ensure the error is logged
https://git.eclipse.org/r/#/c/27321/
I don't even know how to apply the patch :/ I've still got a lot to learn.
Matthias Sohn wrote on Tue, 27 May 2014 03:08- Can you provide an explanation which steps you did until you hit this error dialog ?
- Which version of EGit/JGit are you using ?
- Are you using different ssh key pairs on these two computers ?
- Are you sure you used the right passphrase for the ssh key on the computer where it failed ?
RefSpecImpl.revalidateImpl() throws an exception which is converted to the dialog you are seeing.
Can you post the details you get when clicking the "Details" button ?
I'll try to provide as much information as possible.
I make changes to files in a project and save it, then commit to the local repository without problem. Right clicking my project folder, I go to Team>Remote>Push... and see the Push window. Usually the URI I want to use is filled in for me due to some settings, but since I've tried disconnecting my project from using Git and starting fresh I've had to paste the URI each time. I'm just using the clone URI found on the repository's Github page.
When I press next, it quickly turns up with a dialog saying
Transport Error
Cannot get remote repository refs.
Reason:
org.eclipse.jgit.transport.CredentialItem$StringType:Passphrase for C:\Users\Pyraetos\.ssh\id_rsa
Using the Details button reveals nothing but the same information under "Reason:"
As for the version of EGit, I went to Help>About Eclipse and found a button for EGit. It seems to be 3.2.0.201312181205-r
At the time I posted this, I do not believe I was using different SSH keys on the two computers. I may be now because I generated a new one and loaded it into both Eclipse and Github to no avail.
As for the passphrase, I don't get far enough into the pushing process for it to ask me for a passphrase. This error occurs on the page directly after I enter the URI.
Also, I'm not sure if this is related, but under Team>Remote, the two options on the bottom (Configure push and Configure fetch) are grayed out on my desktop but are available on my laptop. I don't know why.
Thank you very much for helping me with this confusing problem!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07056 seconds