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:
authornulltoken <emeric.fermas@gmail.com>2012-05-11 14:05:34 +0400
committernulltoken <emeric.fermas@gmail.com>2012-05-15 21:30:32 +0400
commit83619e93627793505342d5da35a4785ff6ecfcfb (patch)
treec4aee3b6a8de50313fedc62c7a0e01dcb717e226
parentba918bb81fe6a36e4b42625355ca1499f6356f81 (diff)
Remove trailing "\n" from commit and tag messages
Libgit2 now takes care of cleaning up the messages.
-rw-r--r--LibGit2Sharp.Tests/CommitFixture.cs2
-rw-r--r--LibGit2Sharp.Tests/RepositoryFixture.cs2
-rw-r--r--LibGit2Sharp.Tests/TagFixture.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/LibGit2Sharp.Tests/CommitFixture.cs b/LibGit2Sharp.Tests/CommitFixture.cs
index e8275fe8..6d5f1195 100644
--- a/LibGit2Sharp.Tests/CommitFixture.cs
+++ b/LibGit2Sharp.Tests/CommitFixture.cs
@@ -554,7 +554,7 @@ namespace LibGit2Sharp.Tests
repo.Index.Stage(relativeFilepath);
var author = new Signature("nulltoken", "emeric.fermas@gmail.com", DateTimeOffset.Parse("Wed, Dec 14 2011 08:29:03 +0100"));
- repo.Commit("Initial commit\n", author, author);
+ repo.Commit("Initial commit", author, author);
}
}
diff --git a/LibGit2Sharp.Tests/RepositoryFixture.cs b/LibGit2Sharp.Tests/RepositoryFixture.cs
index d7d29041..4cc90edb 100644
--- a/LibGit2Sharp.Tests/RepositoryFixture.cs
+++ b/LibGit2Sharp.Tests/RepositoryFixture.cs
@@ -283,7 +283,7 @@ namespace LibGit2Sharp.Tests
repo.Index.Stage(filePath);
Signature author = Constants.Signature;
- Commit commit = repo.Commit("Initial commit\n", author, author);
+ Commit commit = repo.Commit("Initial commit", author, author);
commit.Sha.ShouldEqual(expectedSha);
diff --git a/LibGit2Sharp.Tests/TagFixture.cs b/LibGit2Sharp.Tests/TagFixture.cs
index 0886c7fd..53cf7917 100644
--- a/LibGit2Sharp.Tests/TagFixture.cs
+++ b/LibGit2Sharp.Tests/TagFixture.cs
@@ -154,7 +154,7 @@ namespace LibGit2Sharp.Tests
public void CreatingAnAnnotatedTagIsDeterministic()
{
const string tagName = "nullTAGen";
- const string tagMessage = "I've been tagged!\n";
+ const string tagMessage = "I've been tagged!";
TemporaryCloneOfTestRepo path = BuildTemporaryCloneOfTestRepo();
using (var repo = new Repository(path.RepositoryPath))