Skip to content

Commit f61179c

Browse files
committed
Fix to use tracked branches (remotes).
Fixes Tests
1 parent 194ec13 commit f61179c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersionCore/LibGitExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static IEnumerable<Branch> GetBranchesContainingCommit(this Commit commit
5656
yield break;
5757
}
5858

59-
foreach (var branch in repository.Branches.Where(b => !onlyTrackedBranches || b.IsTracking))
59+
foreach (var branch in repository.Branches.Where(b => (onlyTrackedBranches && !b.IsTracking)))
6060
{
6161
var commits = repository.Commits.QueryBy(new CommitFilter { Since = branch }).Where(c => c.Sha == commit.Sha);
6262

0 commit comments

Comments
 (0)