-
Notifications
You must be signed in to change notification settings - Fork 651
3.6.2: TFS15RC1: An unexpected error occurred: System.InvalidOperationException: Could not find a 'develop' or 'master' branch, neither locally nor remotely. #996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here's the error on GitVersion v4.0.0-beta.2
|
Does the workaround provided in #993 solves your issue? |
This just occurred to me on Travis, so I don't think the problem is build server related. |
Workaround works fine. Thought about using, but wasn't sure how to pass the access token. |
@asbjornu why is it cloning your fork: git clone --depth=50 --branch=feature/mkdocs-build https://github.com/asbjornu/GitVersion.git asbjornu/GitVersion Could that be the issue? |
Going to close this one down, Will use the other issue to track, I will likely move this knowledge into GitVersion itself so it will throw if the OAuth token is not passed for PR's |
@JakeGinnivan It's cloning my fork since this is my personal Travis project. I like to have Travis run the tests before I PR it against the GitTools repository. 😄 |
Server: TFS15RC1
Agent version: 2.103.1
GitVersion version: 3.6.2
On TFS15RC1 it seems Microsoft changed the way in which Git retrieves it's data, which causes at least pull request builds to fail when calling the GitVersion task, if the repository has not fetched the master and/or dev branch before.
Repro:
Optional:
If I log in to the build agent's source directory and manually fetch the dev and/or master branch (or all with git fetch -all), the build will work.
The text was updated successfully, but these errors were encountered: