Skip to content

Commit 8dab6c3

Browse files
committed
Fix inverted logic error
1 parent 675a2fb commit 8dab6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ private GitPack[] LoadPacks()
658658
var packPath = Path.Combine(this.ObjectDirectory, "pack", $"{name}.pack");
659659

660660
// Only proceed if both the packfile and index file exist.
661-
if (!File.Exists(packPath))
661+
if (File.Exists(packPath))
662662
{
663663
packs.Add(new GitPack(this.GetObjectBySha, indexPath, packPath));
664664
}

0 commit comments

Comments
 (0)