Skip to content

Commit 194ec13

Browse files
committed
Fix returning non-tracking branches
1 parent 6276276 commit 194ec13

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)
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)