Skip to content

Commit 50247e3

Browse files
committed
Fixed failing tests
1 parent 0057b72 commit 50247e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

GitVersionCore.Tests/IntegrationTests/GitFlow/PatchScenarios.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public void PatchOlderReleaseExample()
5858
r.MakeATaggedCommit("1.2.0");
5959
}))
6060
{
61-
6261
// create hotfix branch
6362
fixture.Repository.CreateBranch("hotfix-1.1.1", (Commit) fixture.Repository.Tags.Single(t => t.Name == "1.1.0").Target).Checkout();
6463

GitVersionCore/Configuration/Config.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public Config()
1717
AssemblyVersioningScheme = AssemblyVersioningScheme.MajorMinorPatch;
1818
TagPrefix = "[vV]";
1919
Branches["release[/-]"] = new BranchConfig { Tag = "beta" };
20+
Branches["hotfix[/-]"] = new BranchConfig { Tag = "beta" };
2021
Branches["develop"] = new BranchConfig { Tag = "unstable" };
2122
VersioningMode = VersioningMode.ContinuousDelivery;
2223
Develop.VersioningMode = VersioningMode.ContinuousDeployment;

GitVersionCore/GitVersionContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
/// </summary>
1212
public class GitVersionContext
1313
{
14+
readonly bool IsContextForTrackedBranchesOnly;
15+
1416
public GitVersionContext(IRepository repository, Config configuration, bool isForTrackingBranchOnly = true)
1517
: this(repository, repository.Head, configuration, isForTrackingBranchOnly)
1618
{
@@ -47,8 +49,6 @@ public GitVersionContext(IRepository repository, Branch currentBranch, Config co
4749

4850
public BranchConfig CurrentBranchConfig { get; private set; }
4951

50-
readonly bool IsContextForTrackedBranchesOnly = true;
51-
5252

5353
IEnumerable<Branch> GetBranchesContainingCommit(string commitSha)
5454
{

0 commit comments

Comments
 (0)