diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-07-28 06:08:33 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2017-07-28 06:08:33 -0400 |
commit | 5188c231043982c83f5bfbb5b0a7a8bde58cfe42 (patch) | |
tree | 39ab7e84f40de21504805bf54659b11c86d2b026 /org.eclipse.jgit.test/tst | |
parent | 94aebcb94913bd565d39f997609abaa3e247dd11 (diff) | |
parent | da0770fdec64b00be7c4c22d5acebee622bbf5f3 (diff) | |
download | jgit-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.java | 5 |
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(); } } |