summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
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.test/tst
parent94aebcb94913bd565d39f997609abaa3e247dd11 (diff)
parentda0770fdec64b00be7c4c22d5acebee622bbf5f3 (diff)
downloadjgit-5188c231043982c83f5bfbb5b0a7a8bde58cfe42.tar.gz
jgit-5188c231043982c83f5bfbb5b0a7a8bde58cfe42.zip
Merge "Fix committing empty commits"
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
index 37fee402e9..a0834e7e85 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
@@ -557,6 +557,11 @@ public class CommitCommandTest extends RepositoryTestCase {
} catch (EmtpyCommitException e) {
// expect this exception
}
+
+ // Allow empty commits also when setOnly was set
+ git.commit().setAuthor("New Author", "newauthor@example.org")
+ .setMessage("again no change").setOnly("file1")
+ .setAllowEmpty(true).call();
}
}