We want to integrate GitVersion in our build pipeline for semantic versioning.
We are seeing the following error on a repo which doesn't have develop branch:
ERROR [06/07/22 16:04:53:53] An unexpected error occurred: System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely. at GitVersion.Configuration.BranchConfigurationCalculator.InheritBranchConfiguration(Branch targetBranch, BranchConfig branchConfiguration, Commit currentCommit, Config configuration, IList`1 excludedInheritBranches) in D:\a\GitVersion\GitVersion\src\GitVersionCore\Configuration\BranchConfigurationCalculator.cs:line 62
I tried to add the gitVersion.yml config file as suggested here - but it didn't help.
Is there a way to overcome this issue without creating develop branch? we don't want to maintain a branch just to overcome this issue.
Thanks!