]> source.dussan.org Git - jgit.git/commitdiff
Ignore missing MERGE_MSG when deleting MERGE_MSG 00/3900/1
authorJens Baumgart <jens.baumgart@sap.com>
Tue, 19 Jul 2011 15:31:50 +0000 (17:31 +0200)
committerJens Baumgart <jens.baumgart@sap.com>
Tue, 19 Jul 2011 15:31:50 +0000 (17:31 +0200)
Repository.writeMergeCommitMsg(null) no longer fails if the MERGE_MSG
file is missing. This was done to avoid CommitCommand to fail in case of
a missing MERGE_MSG file.

Bug: 352243
Change-Id: Iddf43533d133f8f22199ed6e2393a552670e7d1f
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

index aab8a8e619388502838eec28da9ac0600b2b9a85..b51a954ca99d38afa68c9bdbede173b2e2609883 100644 (file)
@@ -1137,7 +1137,7 @@ public abstract class Repository {
                                fos.close();
                        }
                } else {
-                       FileUtils.delete(mergeMsgFile);
+                       FileUtils.delete(mergeMsgFile, FileUtils.SKIP_MISSING);
                }
        }