Skip to content

Commit cf341bb

Browse files
authored
Merge branch 'master' into issue-1278
2 parents 21cb7f0 + 0c27156 commit cf341bb

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

docs/who.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Various people are actively using GitVersion, and taking advantage of the automa
44
* [Catel](https://github.com/catel/catel)
55
* [ChocolateyGUI](https://github.com/chocolatey/ChocolateyGUI)
66
* [GitLink](https://github.com/GitTools/GitLink)
7+
* [OctopusDeploy](https://github.com/OctopusDeploy)
78
* [Orc.* packages](https://github.com/wildgums?query=orc)
89
* [Orchestra](https://github.com/wildgums/orchestra)
910
* [Pomona](http://pomona.io/)

src/GitVersionCore.Tests/ConfigProviderTests.CanWriteOutEffectiveConfiguration.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ branches:
2929
increment: Patch
3030
prevent-increment-of-merged-branch-version: true
3131
track-merge-target: false
32-
regex: master
32+
regex: master$
3333
source-branches:
3434
- develop
3535
- release

src/GitVersionCore.Tests/IntegrationTests/OtherScenarios.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ public void AllowNotHavingMaster()
4646
}
4747
}
4848

49+
[Test]
50+
public void AllowHavingVariantsStartingWithMaster()
51+
{
52+
using (var fixture = new EmptyRepositoryFixture())
53+
{
54+
fixture.Repository.MakeACommit();
55+
fixture.Repository.MakeATaggedCommit("1.0.0");
56+
fixture.Repository.MakeACommit();
57+
Commands.Checkout(fixture.Repository, fixture.Repository.CreateBranch("masterfix"));
58+
59+
fixture.AssertFullSemver("1.0.1-masterfix.1+1");
60+
}
61+
}
62+
4963
[Test]
5064
public void AllowHavingMainInsteadOfMaster()
5165
{

src/GitVersionCore/Configuration/ConfigurationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ConfigurationProvider
2121
public const string HotfixBranchRegex = "hotfix(es)?[/-]";
2222
public const string SupportBranchRegex = "support[/-]";
2323
public const string DevelopBranchRegex = "dev(elop)?(ment)?$";
24-
public const string MasterBranchRegex = "master";
24+
public const string MasterBranchRegex = "master$";
2525
public const string MasterBranchKey = "master";
2626
public const string ReleaseBranchKey = "release";
2727
public const string FeatureBranchKey = "feature";

0 commit comments

Comments
 (0)