File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
<#
2
2
. SYNOPSIS
3
- Updates the libgit2 submodule to the specified commit and updates NativeBinaries.props with the new hash value.
3
+ Updates the libgit2 submodule to the specified commit and updates libgit2_hash.txt and NativeBinaries.props with the new hash value.
4
4
. PARAMETER sha
5
5
Desired libgit2 version. This is run through `git rev-parse`, so branch names are okay too.
6
6
#>
@@ -88,6 +88,8 @@ Push-Location $libgit2Directory
88
88
$binaryFilename = " git2-" + $sha.Substring (0 , 7 )
89
89
}
90
90
91
+ sc - Encoding ASCII (Join-Path $projectDirectory " nuget.package\libgit2\libgit2_hash.txt" ) $sha
92
+
91
93
$buildProperties = @"
92
94
<Project>
93
95
<PropertyGroup>
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $projectDirectory = Split-Path $MyInvocation.MyCommand.Path
22
22
$libgit2Directory = Join-Path $projectDirectory " libgit2"
23
23
$x86Directory = Join-Path $projectDirectory " nuget.package\runtimes\win7-x86\native"
24
24
$x64Directory = Join-Path $projectDirectory " nuget.package\runtimes\win7-x64\native"
25
- $hashFile = Join-Path $projectDirectory " nuget.package\contentFiles\any\any \libgit2_hash.txt"
25
+ $hashFile = Join-Path $projectDirectory " nuget.package\libgit2 \libgit2_hash.txt"
26
26
$sha = Get-Content $hashFile
27
27
28
28
if (! [string ]::IsNullOrEmpty($libgit2Name )) {
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- LIBGIT2SHA=` cat ./nuget.package/contentFiles/any/any /libgit2_hash.txt`
3
+ LIBGIT2SHA=` cat ./nuget.package/libgit2 /libgit2_hash.txt`
4
4
SHORTSHA=${LIBGIT2SHA: 0: 7}
5
5
6
6
rm -rf libgit2/build
Original file line number Diff line number Diff line change
1
+ 15e119375018fba121cf58e02a9f17fe22df0df8
You can’t perform that action at this time.
0 commit comments