Skip to content

Commit

Permalink
Fix inverted logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Apr 29, 2021
1 parent 675a2fb commit 8dab6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ private GitPack[] LoadPacks()
var packPath = Path.Combine(this.ObjectDirectory, "pack", $"{name}.pack");

// Only proceed if both the packfile and index file exist.
if (!File.Exists(packPath))
if (File.Exists(packPath))
{
packs.Add(new GitPack(this.GetObjectBySha, indexPath, packPath));
}
Expand Down

0 comments on commit 8dab6c3

Please sign in to comment.