Skip to content

GitVersion cannot find remote master or develop from inherited branch config #1606

Closed
@threegerbils

Description

@threegerbils

The most recent beta release changes the default branch regexes in a way that prevents them from matching remote branches if GitVersion can't find the parent.

var chosenBranch = repository.Branches.FirstOrDefault(b => Regex.IsMatch(b.FriendlyName, developBranchRegex, RegexOptions.IgnoreCase)

The use of Branch.FriendlyName with the default master regex of ^master$ means that it will never match a remote branch.

see also
#1410

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions