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
LibGit2Sharp.Core.Proxy.git_commit_tree_id throws NullReferenceException in shallow clones #1775
Comments
danielcirket
added a commit
to danielcirket/OpenEventSourcing
that referenced
this issue
Jun 22, 2020
danielcirket
added a commit
to danielcirket/OpenEventSourcing
that referenced
this issue
Jun 22, 2020
danielcirket
added a commit
to danielcirket/OpenEventSourcing
that referenced
this issue
Jul 6, 2020
* Create build.yml * Update Nerdbank.GitVersioning for GitHub actions support * Attempt to work around shallow clone issues with LibGit2Sharp See: dotnet/Nerdbank.GitVersioning#423 See: libgit2/libgit2sharp#1775 * Skip RabbitMQ integration tests when no connection string configured * Remove dummy service bus connection string to skip Service Bus integration tests * Skip additional service bus tests when no connection string available * Skip additional RabbitMQ tests when no connection string is available * Attempt to get rabbitmq service container working * Attempt to connect to rabbitmq service container for tests * Skip rabbitmq management tests if neither connectionstring or management uri configured * Add service bus connection string secret * Attempted OS matrix builds for linux and windows builds * Revert "Attempted OS matrix builds for linux and windows builds" * Add coverlet flags to dotnet test * Attempt to store test coverage artifact * Remove flaky rabbitmq connection finalizer tests
In addition to the better exception you suggest, I'd love to benefit of a simple |
We are still experiencing this issue with git version 5.10.1 on azure devops pipeline. The fix is to specify a max depth of 0 with a checkout task before gitversion : steps:
- checkout: self
fetchDepth: 0
clean: true
- task: gitversion/setup@0
inputs:
versionSpec: '5.10.1'
displayName: 'Install GitVersion' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
Expected behavior
An exception thrown explaining that data is missing because of a shallow clone.
Actual behavior
A NullReferenceException that does not suggest the underlying problem.
Version of LibGit2Sharp (release number or SHA1)
0.27.0-preview.7+gd47cfd9144.libgit2-572e4d8
Operating system(s) tested; .NET runtime tested
Windows 10. .NET Core
The text was updated successfully, but these errors were encountered: