We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be48ce3 commit 6c6695dCopy full SHA for 6c6695d
src/GitVersionCore/VersionCalculation/BaseVersionCalculators/FallbackVersionStrategy.cs
@@ -22,6 +22,10 @@ public override IEnumerable<BaseVersion> GetVersions()
22
{
23
Commit baseVersionSource;
24
var currentBranchTip = Context.CurrentBranch.Tip;
25
+ if (currentBranchTip == null)
26
+ {
27
+ throw new GitVersionException("No commits found on the current branch.");
28
+ }
29
30
try
31
0 commit comments