diff --git a/src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs b/src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs index 16fe4fb6..e12f46fe 100644 --- a/src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs +++ b/src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs @@ -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)); }