Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b9a3733

Browse files
authored
Merge pull request #328 from github/fixes/git-lfs
Updating Git-Lfs to v2.1.1
2 parents da8b9c1 + b59e964 commit b9a3733

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GitHub.Unity
66
{
77
class GitInstaller : IGitInstaller
88
{
9-
public const string GitLfsExecutableMD5 = "CD59072535B9DFF416676C8A84571B0C";
9+
public const string GitLfsExecutableMD5 = "63700E111EF68EE1AD866C2C4373B68D";
1010

1111
private const string PortableGitExpectedVersion = "f02737a78695063deace08e96d5042710d3e32db";
1212
private const string PackageName = "PortableGit";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:7e5a9e7ca9a0ac2877330828e34b9c6666f505991be73a3b0812cb9b4bcd639c
3-
size 2492705
2+
oid sha256:04b6e46a033a3cb289c7a3bfedd976e28eeeb50f6f399b528d6dafd19a4ae11f
3+
size 2674166

src/tests/IntegrationTests/Git/GitSetupTests.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using NUnit.Framework;
55
using Rackspace.Threading;
66
using System.Threading.Tasks;
7+
using ICSharpCode.SharpZipLib.Zip;
78

89
namespace IntegrationTests
910
{
@@ -65,5 +66,25 @@ public async Task InstallGit()
6566
new GitBranch("master", "origin/master: behind 1", true),
6667
new GitBranch("feature/document", "origin/feature/document", false));
6768
}
69+
70+
71+
[Test]
72+
public void VerifyGitLfsBundle()
73+
{
74+
var environmentPath = NPath.CreateTempDirectory("integration-test-environment");
75+
76+
var gitLfsPath = environmentPath.Combine("git-lfs.exe");
77+
gitLfsPath.Exists().Should().BeFalse();
78+
79+
var inputZipFile = SolutionDirectory.Combine("PlatformResources", "windows", "git-lfs.zip");
80+
81+
var fastZip = new FastZip();
82+
fastZip.ExtractZip(inputZipFile, environmentPath, null);
83+
84+
gitLfsPath.Exists().Should().BeTrue();
85+
86+
var calculateMd5 = NPath.FileSystem.CalculateMD5(gitLfsPath);
87+
GitInstaller.GitLfsExecutableMD5.Should().Be(calculateMd5);
88+
}
6889
}
6990
}

src/tests/IntegrationTests/IntegrationTests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</PropertyGroup>
3333
<ItemGroup>
3434
<Reference Include="AsyncBridge.Net35, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b3b1c0202c0d6a87, processorArchitecture=MSIL">
35-
<HintPath>$(SolutionDir)\packages\AsyncBridge.Net35.0.2.0\lib\net35-Client\AsyncBridge.Net35.dll</HintPath>
35+
<HintPath>$(SolutionDir)packages\AsyncBridge.Net35.0.2.0\lib\net35-Client\AsyncBridge.Net35.dll</HintPath>
3636
<Private>True</Private>
3737
</Reference>
3838
<Reference Include="FluentAssertions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
@@ -41,10 +41,10 @@
4141
</Reference>
4242
<Reference Include="ICSharpCode.SharpZipLib, Version=2.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
4343
<SpecificVersion>False</SpecificVersion>
44-
<HintPath>..\..\..\lib\5.5\ICSharpCode.SharpZipLib.dll</HintPath>
44+
<HintPath>$(SolutionDir)lib\5.5\ICSharpCode.SharpZipLib.dll</HintPath>
4545
</Reference>
4646
<Reference Include="NCrunch.Framework, Version=3.3.0.6, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea, processorArchitecture=MSIL">
47-
<HintPath>$(SolutionDir)\packages\NCrunch.Framework.3.3.0.6\lib\NCrunch.Framework.dll</HintPath>
47+
<HintPath>$(SolutionDir)packages\NCrunch.Framework.3.3.0.6\lib\NCrunch.Framework.dll</HintPath>
4848
<Private>True</Private>
4949
</Reference>
5050
<Reference Include="NSubstitute, Version=1.10.0.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)