Community
Participate
Working Groups
When trying to set up a Pull operation on a detached HEAD, I get the following stack: org.eclipse.jgit.api.errors.DetachedHeadException: HEAD is detached at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:201) at org.eclipse.egit.core.op.PullOperation$1.run(PullOperation.java:174) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:206) at org.eclipse.egit.ui.internal.pull.PullOperationUI.execute(PullOperationUI.java:156) at org.eclipse.egit.ui.internal.pull.PullOperationUI$1.runInWorkspace(PullOperationUI.java:131) However, with regular Git CLI, this is actually a pretty useful operation that always work: from detached HEAD "git pull origin master"
Now that UI for bug 485124 is usable in EGit, this issue shows up as an error if one is trying to pull on detached HEAD. I'm putting is as target milestone 4.3 because I believe it should be targeted for the 4.3 release (just like bug 485124). However, I currently don't have the time to work on this; so don't interpret it as a commitment from my side and feel free to take the bug if you'd like it.
New Gerrit change created: https://git.eclipse.org/r/93047
Putting tentative target to 4.7.1 as it may be eligible as a maitenance fix.
Is there anything I can do to improve the chances of this patch to be merged soon (and hopefully available in Oxygen) ?
Gerrit change https://git.eclipse.org/r/93047 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=5b84e25fa3afe66bbfa7eb953ea0bd332c745ecd
Thanks a lot for the review and merge Matthias! With latest EPP, I could `pull --rebase` from my project in the Eclipse IDE. As I'm almost always using detached branches, it feels like it's the first time a pull works for me. It really makes me happier! Does JGit has a N&N? I think it would be worth mentioning.
you can mention this here (didn't write the release notes yet) https://wiki.eclipse.org/JGit/New_and_Noteworthy/4.8