Community
Participate
Working Groups
When pushing a remote tracking branch with "Push to upstream..." in Eclipse, EGit will update the local ref of the remote branch (say origin/master) to the same commit referenced by local "master" branch. When pushing the same branch with "Push...", EGit will NOT do this update (even if the commit have been pushed and the master branch in the remote repository updated). An additional, manual fetch is necessary to update local "remote/master" ref.
Yes, that's missing. The (technical) reason is that the PushWizard does not use the origin name but the URI to call JGit's push command. JGit's push command works correctly, it only updates the remote tracking branch if a remote name is given, but not when a URI is given.
Thanks Stefan for your answer. I well understand the point, particularly when the PushWizard is used with a "Custom URI". That would be nice if the PushWizard could update the remote tracking branch when used with a "Configured remote repository". Best Regards,
Created attachment 249912 [details] compare dialog shows right remote commit number in opposite of Git Repositories view add screenshot