-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Shallow clone lacks of commits even I did not clone anything #837
Comments
Are you running this on a shallow clone? |
No, I did not clone anything. |
Nerdbank.GitVersioning requires to be run inside a git repo. If you didn't clone anything (and didn't create the repo locally to begin with) then you'd get a different error. So it's very likely you cloned, or are running in an environment where the clone was made for you. And if that's the case, you should check how the clone was made, because it was likely made as a shallow clone. And, per the error message, that's what you need to go fix. |
I am sorry I gave too little details. Thanks for your patience. I run nbgv in a repo on azure devops but I did not clone the repo from elsewhere, I started from scratch. These are the git informations:
|
Thanks. I see See https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/cloudbuild.md#azure-pipelines for how to fix this. |
Thank you so much. |
When calling
nbgv cloud
I get this exception.NuGet version: 3.4.255
tool version: 3.4.205
I used this older versions as we have a repository where it works with the same settings.
It also do not work with latest versions.
The text was updated successfully, but these errors were encountered: