diff --git a/.travis.yml b/.travis.yml
index d0e35f585..12830d15a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,9 @@ os:
- osx
- linux
+# The newer image cannot find mono 3.12 in the PATH
+osx_image: xcode6.4
+
env:
global:
- MONO_OPTIONS=--debug
diff --git a/LibGit2Sharp.Tests/ConfigurationFixture.cs b/LibGit2Sharp.Tests/ConfigurationFixture.cs
index ee49fd249..7edc6dab3 100644
--- a/LibGit2Sharp.Tests/ConfigurationFixture.cs
+++ b/LibGit2Sharp.Tests/ConfigurationFixture.cs
@@ -455,15 +455,6 @@ public void CanSetAndGetMultipleSearchPaths()
[Fact]
public void CanResetSearchPaths()
{
- // all of these calls should reset the config path to the default
- Action[] resetActions =
- {
- () => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global),
- () => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null),
- () => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, string.Empty),
- () => GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, new string[] { }),
- };
-
// record the default search path
GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null);
var oldPaths = GlobalSettings.GetConfigSearchPaths(ConfigurationLevel.Global);
@@ -472,19 +463,13 @@ public void CanResetSearchPaths()
// generate a non-default path to set
var newPaths = new string[] { Path.Combine(Constants.TemporaryReposPath, Path.GetRandomFileName()) };
- foreach (var tryToReset in resetActions)
- {
- // change to the non-default path
- GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, newPaths);
- Assert.Equal(newPaths, GlobalSettings.GetConfigSearchPaths(ConfigurationLevel.Global));
-
- // set it back to the default
- tryToReset();
- Assert.Equal(oldPaths, GlobalSettings.GetConfigSearchPaths(ConfigurationLevel.Global));
- }
+ // change to the non-default path
+ GlobalSettings.SetConfigSearchPaths (ConfigurationLevel.Global, newPaths);
+ Assert.Equal (newPaths, GlobalSettings.GetConfigSearchPaths (ConfigurationLevel.Global));
- // make sure the config paths are reset after the test ends
- GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null);
+ // set it back to the default
+ GlobalSettings.SetConfigSearchPaths (ConfigurationLevel.Global, null);
+ Assert.Equal (oldPaths, GlobalSettings.GetConfigSearchPaths (ConfigurationLevel.Global));
}
[Fact]
@@ -497,7 +482,7 @@ public void CanAppendToSearchPaths()
GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, "$PATH", appendMe);
var currentPaths = GlobalSettings.GetConfigSearchPaths(ConfigurationLevel.Global);
- Assert.Equal(currentPaths, prevPaths.Concat(new[] { appendMe }));
+ Assert.Equal(prevPaths.Concat(new[] { appendMe }), currentPaths);
// set it back to the default
GlobalSettings.SetConfigSearchPaths(ConfigurationLevel.Global, null);
diff --git a/LibGit2Sharp.Tests/FileHistoryFixture.cs b/LibGit2Sharp.Tests/FileHistoryFixture.cs
index c74165fcf..7f7a94b4c 100644
--- a/LibGit2Sharp.Tests/FileHistoryFixture.cs
+++ b/LibGit2Sharp.Tests/FileHistoryFixture.cs
@@ -161,7 +161,8 @@ public void CanTellComplexCommitHistory()
var commit4 = MakeAndCommitChange(repo, repoPath, newPath1, "I have done it again!");
// Perform tests.
- var fileHistoryEntries = repo.Commits.QueryBy(newPath1).ToList();
+ var commitFilter = new CommitFilter () { SortBy = CommitSortStrategies.Topological };
+ var fileHistoryEntries = repo.Commits.QueryBy(newPath1, commitFilter).ToList();
var changedBlobs = fileHistoryEntries.Blobs().Distinct().ToList();
Assert.Equal(4, fileHistoryEntries.Count());
diff --git a/LibGit2Sharp/Core/GitDiff.cs b/LibGit2Sharp/Core/GitDiff.cs
index d8fa72a44..eb21d6881 100644
--- a/LibGit2Sharp/Core/GitDiff.cs
+++ b/LibGit2Sharp/Core/GitDiff.cs
@@ -397,6 +397,7 @@ internal class GitDiffBinaryFile
[StructLayout(LayoutKind.Sequential)]
internal class GitDiffBinary
{
+ public uint ContainsData;
public GitDiffBinaryFile OldFile;
public GitDiffBinaryFile NewFile;
}
diff --git a/LibGit2Sharp/Core/GitOdbBackend.cs b/LibGit2Sharp/Core/GitOdbBackend.cs
index e36cdc531..f5335655e 100644
--- a/LibGit2Sharp/Core/GitOdbBackend.cs
+++ b/LibGit2Sharp/Core/GitOdbBackend.cs
@@ -34,6 +34,7 @@ static GitOdbBackend()
public IntPtr Refresh;
public foreach_callback Foreach;
public IntPtr Writepack;
+ public IntPtr Freshen;
public free_callback Free;
/* The libgit2 structure definition ends here. Subsequent fields are for libgit2sharp bookkeeping. */
diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj
index e436644ab..6156af63b 100644
--- a/LibGit2Sharp/LibGit2Sharp.csproj
+++ b/LibGit2Sharp/LibGit2Sharp.csproj
@@ -1,6 +1,6 @@
-
+
Debug
AnyCPU
@@ -366,11 +366,11 @@
-
TextTemplatingFileGenerator
Objects.cs
+
@@ -380,12 +380,6 @@
-
-
- This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
-
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
\ No newline at end of file
diff --git a/LibGit2Sharp/packages.config b/LibGit2Sharp/packages.config
index ee6d18e01..db6ebf4c3 100644
--- a/LibGit2Sharp/packages.config
+++ b/LibGit2Sharp/packages.config
@@ -1,4 +1,4 @@
-
-
+
+
\ No newline at end of file