I am using JGit (v4.10.0.201712302008-r) to automate tasks that interact with our git repository.
Some of the tasks leave the repo in a REBASING_MERGE
state for some reason. Now the next time I process a task, I need to try to "repair" the repository. I have already removed potential conflicted/modified/added but the repo is still in REBASING_MERGE
state.
I've tried what is mention there (aborting a merge), but to no avail - the repository status is still the same and I can't do a pull:
org.eclipse.jgit.api.errors.WrongRepositoryStateException: Cannot pull into a repository with state: REBASING_MERGE
Any idea of how to fix this with JGit?