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

Commit 67893ea

Browse files
Fixing logic statement
1 parent af0e245 commit 67893ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ private bool IsGitExtracted()
165165

166166
var calculateMd5 = environment.FileSystem.CalculateFileMD5(installDetails.GitLfsExecPath);
167167
var md5 = environment.IsWindows ? GitInstallDetails.WindowsGitLfsExecutableMD5 : GitInstallDetails.MacGitLfsExecutableMD5;
168-
if (md5.Equals(calculateMd5, StringComparison.InvariantCultureIgnoreCase))
168+
if (!md5.Equals(calculateMd5, StringComparison.InvariantCultureIgnoreCase))
169169
{
170-
Logger.Trace("{0} has MD5 {1} Excepted {2}", installDetails.GitLfsExecPath, calculateMd5, md5);
170+
Logger.Trace("{0} has MD5 {1} expected {2}", installDetails.GitLfsExecPath, calculateMd5, md5);
171171
return false;
172172
}
173173

0 commit comments

Comments
 (0)