Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-04-08 06:53:35 +0400
committerEdward Thomson <ethomson@microsoft.com>2014-04-09 21:00:50 +0400
commit8a303f2b24a053816d8d88c3733447ae5565e662 (patch)
tree4fa187b62202172b927fc4f73f838b36c4e75af3 /LibGit2Sharp.Tests/BranchFixture.cs
parentaa94e9d9326e9318feb89e8c9f4300b0bf60f6ca (diff)
Introduce EmptyCommitException
By default, we now throw an exception when trying to commit an "empty commit" - that is, one that does not change any items. This check only applies when doing a normal commit, or an amend of a normal commit; it does not apply when performing a merge or an amend of a merge commit. This check can optionally be overridden.
Diffstat (limited to 'LibGit2Sharp.Tests/BranchFixture.cs')
-rw-r--r--LibGit2Sharp.Tests/BranchFixture.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/LibGit2Sharp.Tests/BranchFixture.cs b/LibGit2Sharp.Tests/BranchFixture.cs
index 18099206..1f44618c 100644
--- a/LibGit2Sharp.Tests/BranchFixture.cs
+++ b/LibGit2Sharp.Tests/BranchFixture.cs
@@ -300,7 +300,7 @@ namespace LibGit2Sharp.Tests
var expectedWdBranches = new[]
{
- "diff-test-cases", "i-do-numbers", "logo", "master", "origin/master", "track-local",
+ "diff-test-cases", "i-do-numbers", "logo", "master", "origin/master", "track-local", "treesame_as_32eab"
};
Assert.Equal(expectedWdBranches,
@@ -315,7 +315,7 @@ namespace LibGit2Sharp.Tests
{
var expectedWdBranches = new[]
{
- "diff-test-cases", "i-do-numbers", "logo", "master", "track-local",
+ "diff-test-cases", "i-do-numbers", "logo", "master", "track-local", "treesame_as_32eab",
"origin/HEAD", "origin/br2", "origin/master", "origin/packed-test",
"origin/test"
};
@@ -336,6 +336,7 @@ namespace LibGit2Sharp.Tests
new { Name = "logo", Sha = "a447ba2ca8fffd46dece72f7db6faf324afb8fcd", IsRemote = false },
new { Name = "master", Sha = "32eab9cb1f450b5fe7ab663462b77d7f4b703344", IsRemote = false },
new { Name = "track-local", Sha = "580c2111be43802dab11328176d94c391f1deae9", IsRemote = false },
+ new { Name = "treesame_as_32eab", Sha = "f705abffe7015f2beacf2abe7a36583ebee3487e", IsRemote = false },
new { Name = "origin/HEAD", Sha = "580c2111be43802dab11328176d94c391f1deae9", IsRemote = true },
new { Name = "origin/br2", Sha = "a4a7dce85cf63874e984719f4fdd239f5145052f", IsRemote = true },
new { Name = "origin/master", Sha = "580c2111be43802dab11328176d94c391f1deae9", IsRemote = true },