Skip to content

Commit a8d30d4

Browse files
authored
Merge pull request #697 from dotnet/fixPathsToOSX
Fix path calculation to OSX native libgit2 binaries
2 parents ac0bc86 + 8205a85 commit a8d30d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/LibGit2/LibGit2GitExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static IEnumerable<Commit> GetCommitsFromVersion(LibGit2Context context,
173173
}
174174
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
175175
{
176-
return Path.Combine(basePath, "lib", "osx");
176+
return Path.Combine(basePath, "lib", "osx", RuntimeInformation.OSArchitecture == Architecture.Arm64 ? "arm_64" : "x86_64");
177177
}
178178

179179
return null;

0 commit comments

Comments
 (0)