diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java index 859e92fdb..da6ac0a43 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java @@ -248,7 +248,7 @@ public class CommitCommand extends GitCommand { } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccuredDuringReadingOfGIT_DIR, - Constants.MERGE_HEAD, e)); + Constants.MERGE_HEAD, e), e); } if (message == null) { try { @@ -256,7 +256,7 @@ public class CommitCommand extends GitCommand { } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccuredDuringReadingOfGIT_DIR, - Constants.MERGE_MSG, e)); + Constants.MERGE_MSG, e), e); } } } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java index a6e648d36..f94f32fef 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java @@ -164,7 +164,7 @@ public class MergeCommand extends GitCommand { throw new JGitInternalException( MessageFormat.format( JGitText.get().exceptionCaughtDuringExecutionOfMergeCommand, - e)); + e), e); } }