Browse Source

Merge "Ensure the ObjectInserter flushes after a merge"

stable-1.2
Shawn O. Pearce 13 years ago committed by Code Review
parent
commit
9f81c6813a
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/merge/Merger.java

5
org.eclipse.jgit/src/org/eclipse/jgit/merge/Merger.java

@ -153,7 +153,10 @@ public abstract class Merger {
sourceTrees[i] = walk.parseTree(sourceObjects[i]);
try {
return mergeImpl();
boolean ok = mergeImpl();
if (ok && inserter != null)
inserter.flush();
return ok;
} finally {
if (inserter != null)
inserter.release();

Loading…
Cancel
Save