summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-07-28 06:08:33 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2017-07-28 06:08:33 -0400
commit5188c231043982c83f5bfbb5b0a7a8bde58cfe42 (patch)
tree39ab7e84f40de21504805bf54659b11c86d2b026 /org.eclipse.jgit/src/org
parent94aebcb94913bd565d39f997609abaa3e247dd11 (diff)
parentda0770fdec64b00be7c4c22d5acebee622bbf5f3 (diff)
downloadjgit-5188c231043982c83f5bfbb5b0a7a8bde58cfe42.tar.gz
jgit-5188c231043982c83f5bfbb5b0a7a8bde58cfe42.zip
Merge "Fix committing empty commits"
Diffstat (limited to 'org.eclipse.jgit/src/org')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java2
1 files changed, 1 insertions, 1 deletions
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 274ece6dca..e29fc05463 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
@@ -482,7 +482,7 @@ public class CommitCommand extends GitCommand<RevCommit> {
JGitText.get().entryNotFoundByPath, only.get(i)));
// there must be at least one change
- if (emptyCommit)
+ if (emptyCommit && !allowEmpty.booleanValue())
// Would like to throw a EmptyCommitException. But this would break the API
// TODO(ch): Change this in the next release
throw new JGitInternalException(JGitText.get().emptyCommit);