Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Exception during merge

Dear List,

I wrote a method that merges the changes from a fork to its parent. It works in most of the cases. However, my last merge caused an exception. Multiple merge bases for:
  b457ad70f5cf3428f21b376157a114c5be89c7f1 found:
at org.eclipse.jgit.merge.Merger.getBaseCommit(
at org.eclipse.jgit.merge.Merger.mergeBase(
at org.eclipse.jgit.merge.ThreeWayMerger.mergeBase(
at org.eclipse.jgit.merge.ResolveMerger.mergeImpl(
at org.eclipse.jgit.merge.Merger.merge(
at org.eclipse.jgit.merge.ThreeWayMerger.merge(
at org.eclipse.jgit.merge.ThreeWayMerger.merge(

 I found a discussion about the so called criss-cross merges: It turned out, that in the failing case I also tried to make a criss-cross merge (pull from parent to fork; some chages to fork; merge back fork to parent). As Shawn wrote in the discussion JGit doesn't support executing these kind of merges. But this was two years ago, so I'd like to aks you if this problem were fixed? If not, do you know about any workaround? We'd like to support a workflow that can lead to many criss-cross merges. Is there a way to merge them using JGit? (for example creating the merge base by merging the multiple bases, or using an oother MErger implementation)

Thanks in advance,
Ákos Tajti

Back to the top