Skip to content

Commit 52d2050

Browse files
committed
Invalidate cache if tip is not the same as the last cached commit
1 parent 73f317c commit 52d2050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/IncrementStrategyFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static IEnumerable<Commit> GetIntermediateCommits(IRepository repo, Comm
8383
{
8484
if (baseCommit == null) yield break;
8585

86-
if (intermediateCommitCache == null)
86+
if (intermediateCommitCache == null || intermediateCommitCache.Last() != currentBranch.Tip)
8787
{
8888
var filter = new CommitFilter
8989
{

0 commit comments

Comments
 (0)