Skip to content

Commit e03b27b

Browse files
committed
Fix 3 broken tests which require tracked branches to function
1 parent 179870b commit e03b27b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/GitVersionCore.Tests/IntegrationTests/DevelopScenarios.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void WhenDevelopBranchedFromMasterDetachedHeadMinorIsIncreased()
143143
var commit = fixture.Repository.Head.Tip;
144144
fixture.Repository.MakeACommit();
145145
Commands.Checkout(fixture.Repository, commit);
146-
fixture.AssertFullSemver("1.1.0-alpha.1");
146+
fixture.AssertFullSemver("1.1.0-alpha.1", isForTrackedBranchOnly: false);
147147
}
148148

149149
[Test]

src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using GitTools.Testing;
1+
using GitTools.Testing;
22
using LibGit2Sharp;
33
using NUnit.Framework;
44
using GitVersion.Configuration;
@@ -93,7 +93,7 @@ public void GivenARepositoryWithCommitsButNoTagsWithDetachedHeadVersionShouldBe0
9393
Commands.Checkout(fixture.Repository, commit);
9494

9595
// When
96-
fixture.AssertFullSemver("0.1.0+2");
96+
fixture.AssertFullSemver("0.1.0+2", isForTrackedBranchOnly: false);
9797
}
9898

9999
[Test]
@@ -207,4 +207,4 @@ public void AreTagsNotAdheringToTagPrefixIgnored()
207207
fixture.AssertFullSemver(config, "0.1.0+6"); //Fallback version + 6 commits since tag
208208
}
209209
}
210-
}
210+
}

0 commit comments

Comments
 (0)