Skip to content

GitVersion does not handle repos without branches named develop or main/master #3669

Answered by HHobeck
CasperWSchmidt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there.

If you take the following integration test then you see it is working out of the box:

[Test]
public void TestForDiscussion3669()
{
    var configuration = GitFlowConfigurationBuilder.New
        .WithBranch("release", _ => _
            .WithIncrement(IncrementStrategy.Minor)
            .WithIsMainline(true)
            .WithIsReleaseBranch(true)
            .WithVersioningMode(VersioningMode.ContinuousDelivery)
        ).Build();

    using var fixture = new EmptyRepositoryFixture("release/v1");

    fixture.MakeATaggedCommit("1.0.0");
    fixture.BranchTo("feature/just-a-feature");
    fixture.MakeACommit();

    // ✅ succeeds as expected
    fixture.AssertFullSemver("1.1.0-j…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants