Closed
Description
Guys,
I have a very strange problem... System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely
is the message I get when trying to build a pull request. From either MASTER or a topic branch this all works perfectly.
2016-09-28T09:06:44.8095056Z ERROR [09/28/16 9:06:44:68] An unexpected error occurred:
2016-09-28T09:06:44.8095056Z System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely.
2016-09-28T09:06:44.8095056Z at GitVersion.BranchConfigurationCalculator.InheritBranchConfiguration(Boolean onlyEvaluateTrackedBranches, IRepository repository, Commit currentCommit, Branch currentBranch, KeyValuePair`2 keyValuePair, BranchConfig branchConfiguration, Config config, IList`1 excludedInheritBranches)
2016-09-28T09:06:44.8095056Z at GitVersion.BranchConfigurationCalculator.GetBranchConfiguration(Commit currentCommit, IRepository repository, Boolean onlyEvaluateTrackedBranches, Config config, Branch currentBranch, IList`1 excludedInheritBranches)
2016-09-28T09:06:44.8095056Z at GitVersion.GitVersionContext.CalculateEffectiveConfiguration()
2016-09-28T09:06:44.8095056Z at GitVersion.GitVersionContext..ctor(IRepository repository, Branch currentBranch, Config configuration, Boolean onlyEvaluateTrackedBranches, String commitId)
2016-09-28T09:06:44.8095056Z at GitVersion.ExecuteCore.<>c__DisplayClass6_0.<ExecuteInternal>b__0(IRepository repo)
2016-09-28T09:06:44.8095056Z at GitVersion.GitPreparer.WithRepository[TResult](Func`2 action)
2016-09-28T09:06:44.8095056Z at GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)
2016-09-28T09:06:44.8095056Z at GitVersion.SpecifiedArgumentRunner.Run(Arguments arguments, IFileSystem fileSystem)
2016-09-28T09:06:44.8095056Z at GitVersion.Program.VerifyArgumentsAndRun()
Why might this be happening?
I have attached the full log and you can see it finds tags and lists the graph...
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDeployment
continuous-delivery-fallback-tag: ''
branches:
master:
mode: ContinuousDeployment
tag: ''
ignore:
sha: []