Community
Participate
Working Groups
Build Identifier: M20110909-1335 Pushing changes to my origin git bare repository caused an error on Egit : JGit Internal Exception. The problem is that now after this error when i push i get "everything is up to date" but in the repository i can't find the new commits related to this push opetration, why ? How can i resolve that ? In the attachment screenshot of the error and log file. Reproducible: Didn't try Steps to Reproduce: 1. Do some changes on the project. 2. Commit the changes on local repository 3. Pushing the changes to remote repository (bare repository) One file was out of synch at the moment of the push, but this files is excluded from the repository...
Created attachment 207935 [details] Screenshot of the error
Created attachment 207936 [details] Error log of the issue
I had to do git merge on the last commit to succeed pushing correctly the last commit. EGit had automatically created a merge with that commit, really strange ...
If you look into the error you'll see that JGit complained that there is nothing to push. - From which local branch did you try to push ? - To which remote branch did you intend to push? - What was the refspec you used for pushing? The refspec is defining how to map local branches to branches in the remote repository
I was in the master local branch and i tried to push as usual in the origin master . I never created a branch in this project/repository, seems that JGit automatically created a branch after an error during the first push operation, in fact after the first error i get the : "everything was up to date", but the first error caused this behaviour. The first error was : !ENTRY org.eclipse.core.resources 4 1 2011-12-05 16:43:00.456 !MESSAGE Core exception while retrieving the content description !STACK 1 org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/juakari2fjssco/juakari2fjssco.log'.
(In reply to comment #5) > I was in the master local branch and i tried to push as usual in the origin > master . > I never created a branch in this project/repository, seems that JGit > automatically created a branch after an error during the first push operation, > in fact after the first error i get the : "everything was up to date", but the > first error caused this behaviour. > > The first error was : > > !ENTRY org.eclipse.core.resources 4 1 2011-12-05 16:43:00.456 > !MESSAGE Core exception while retrieving the content description > !STACK 1 > org.eclipse.core.internal.resources.ResourceException: Resource is out of sync > with the file system: '/juakari2fjssco/juakari2fjssco.log'. This doesn't look like an error coming from EGit, but rather like you changed some files which are in the Eclipse workspace from outside Eclipse. I can't imagine how EGit would create a branch when push hits an error. Please provide step by step instructions how to reproduce your problem.
Which EGit version are you using ?
"nothing to push" is not a severe error, not displaying this in a result dialog is bad, this was fixed in the meantime (tried with recent EGit 2.1-SNAPSHOT)