Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Release LibGit2Sharp v0.18.1 #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 4, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@
- CodeBetter TeamCity: <http://teamcity.codebetter.com/project.html?projectId=LibGit2Sharp&guest=1>
- Travis: <https://travis-ci.org/libgit2/libgit2sharp>

## v0.18.1 - ([diff](https://github.com/libgit2/libgit2sharp/compare/v0.18.0...v0.18.1))

### Additions

- Make CommitOptions expose additional properties to control how the message should be prettified (#744, #745)

### Changes

- Update libgit2 binaries to libgit2/libgit2@90befde

### Fixes

- Fix issue when cloning from a different local volume (#742, #743)

## v0.18.0 - ([diff](https://github.com/libgit2/libgit2sharp/compare/v0.17.0...v0.18.0))

### Additions
Expand Down
Binary file removed Lib/NativeBinaries/amd64/git2-2f6f6eb.dll
Binary file not shown.
Binary file added Lib/NativeBinaries/amd64/git2-90befde.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 14 additions & 5 deletions LibGit2Sharp.Tests/CloneFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ public void CanClone(string url)
}
}

private void AssertLocalClone(string path)
private void AssertLocalClone(string url, string path = null, bool isCloningAnEmptyRepository = false)
{
var scd = BuildSelfCleaningDirectory();

string clonedRepoPath = Repository.Clone(path, scd.DirectoryPath);
string clonedRepoPath = Repository.Clone(url, scd.DirectoryPath);

using (var clonedRepo = new Repository(clonedRepoPath))
using (var originalRepo = new Repository(BareTestRepoPath))
using (var originalRepo = new Repository(path ?? url))
{
Assert.NotEqual(originalRepo.Info.Path, clonedRepo.Info.Path);
Assert.Equal(originalRepo.Head, clonedRepo.Head);

Assert.Equal(originalRepo.Branches.Count(), clonedRepo.Branches.Count(b => b.IsRemote));
Assert.Equal(1, clonedRepo.Branches.Count(b => !b.IsRemote));
Assert.Equal(isCloningAnEmptyRepository ? 0 : 1, clonedRepo.Branches.Count(b => !b.IsRemote));

Assert.Equal(originalRepo.Tags.Count(), clonedRepo.Tags.Count());
Assert.Equal(1, clonedRepo.Network.Remotes.Count());
Expand All @@ -60,7 +60,7 @@ private void AssertLocalClone(string path)
public void CanCloneALocalRepositoryFromALocalUri()
{
var uri = new Uri(BareTestRepoPath);
AssertLocalClone(uri.AbsoluteUri);
AssertLocalClone(uri.AbsoluteUri, BareTestRepoPath);
}

[Fact]
Expand All @@ -69,6 +69,15 @@ public void CanCloneALocalRepositoryFromAStandardPath()
AssertLocalClone(BareTestRepoPath);
}

[Fact]
public void CanCloneALocalRepositoryFromANewlyCreatedTemporaryPath()
{
var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString().Substring(0, 8));
SelfCleaningDirectory scd = BuildSelfCleaningDirectory(path);
Repository.Init(scd.DirectoryPath);
AssertLocalClone(scd.DirectoryPath, isCloningAnEmptyRepository: true);
}

[Theory]
[InlineData("http://github.com/libgit2/TestGitRepository")]
[InlineData("https://github.com/libgit2/TestGitRepository")]
Expand Down
2 changes: 1 addition & 1 deletion LibGit2Sharp/Core/NativeDllName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace LibGit2Sharp.Core
{
internal static class NativeDllName
{
public const string Name = "git2-2f6f6eb";
public const string Name = "git2-90befde";
}
}
4 changes: 2 additions & 2 deletions LibGit2Sharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.18.0")]
[assembly: AssemblyFileVersion("0.18.0")]
[assembly: AssemblyVersion("0.18.1")]
[assembly: AssemblyFileVersion("0.18.1")]
2 changes: 1 addition & 1 deletion LibGit2Sharp/libgit2_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2f6f6ebc9937220302875de96ce129919296670a
90befde4a1938641dfdb9a7bdb9f361d1de5c26f
2 changes: 1 addition & 1 deletion libgit2