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
Regression: Nerdbank.GitVersioning.GitException: The commit 0000000000000000000000000000000000000000 was not found in this repository. #602
Comments
I think this may be fixed in the latest CI build. Can you confirm by trying out v3.4.203? More instructions here: https://github.com/dotnet/Nerdbank.GitVersioning#how-do-i-consume-the-latest-changes-prior-to-their-release-on-nugetorg |
I tried |
@qmfrederik What do you think? Can we fix this? |
I was trying to build a reproduction for this and am having trouble getting it to break. I wrote the following script based on my, limited, understanding of git alternates.
Which results in the following output:
I feel like I am missing something in the setup. Edit: Revised to something probably closer to being right... but still not getting a reproduction. |
I think this is caused by
@vchirikov What does |
@vchirikov If you're up to it, you should be able to fairly easily debug this yourself - something like this: var repository = GitRepository.Create("path_to_your_repo");
var head = repository.GetHeadCommitSha();
// head is likely to be GitObjectId.Empty; we should find out why ;-) should get you to the relevant part of the code. |
It happened on a build server (TeamCity), I will try to reproduce it soon on my local repo. |
Likely to be fixed by #613 |
Test repository. Created by |
Sorry I was on vacation. I can confirm, the issue is resolved on |
Hello, I ran into a problem with the managed git implementation in nbgv (
3.4.194
).The
3.3.37
version works fine.The repo was cloned through git alternates and then repacked.
git repack -a -d && rm -rf .git/objects/info/alternates
The text was updated successfully, but these errors were encountered: