Skip to content

Commit 0e5359e

Browse files
author
roeil
committed
fix
1 parent b3a10eb commit 0e5359e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/GitVersion.Core/VersionCalculation/PathFilter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public bool Exclude(IBaseVersion baseVersion, out string? reason)
2323

2424
public bool Exclude(ICommit? commit, out string? reason)
2525
{
26-
commit.NotNull();
2726
reason = null;
2827

2928
if (commit != null)

src/GitVersion.LibGit2Sharp/Git/GitRepository.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ public void DiscoverRepository(string? gitDirectory)
7171
this.patchCache[commit.Sha] = patch;
7272
}
7373
}
74+
else
75+
{
76+
patch = this.patchCache[commit.Sha];
77+
}
7478

7579
return patch?.Select(p => p.Path);
7680
}

0 commit comments

Comments
 (0)