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
"reference delta not found" while cloning / parsing the packfile #484
Comments
This commit adds test data for go-git/go-git#485 Note: The pack file in this commit has been specificaly crafted to act as a small reproducible example of a packfile we have seen in the wild. See also: go-git/go-git#484
I am also facing the similar error logged with more details: #495 |
I thought maybe an additional sample would be useful so I'll share my findings: Using
After updating to |
In a self-contained pack file delta references might point to base objects stored later in the file. In this case we need to replace placeholders for external refs with the actual base object and update the children references. Fixes: go-git#484 Co-authored-by: Markus Wolf <mail@markus-wolf.de>
This commit adds test data for go-git/go-git#485 Note: The pack file in this commit has been specificaly crafted to act as a small reproducible example of a packfile we have seen in the wild. See also: go-git/go-git#484
In a self-contained pack file delta references might point to base objects stored later in the file. In this case we need to replace placeholders for external refs with the actual base object and update the children references. Fixes: go-git#484 Co-authored-by: Markus Wolf <mail@markus-wolf.de>
In a self-contained pack file delta references might point to base objects stored later in the file. In this case we need to replace placeholders for external refs with the actual base object and update the children references. Fixes: go-git#484 Co-authored-by: Markus Wolf <mail@markus-wolf.de> Signed-off-by: Rohan Kumar <rohankmr414@gmail.com>
In a self-contained pack file delta references might point to base objects stored later in the file. In this case we need to replace placeholders for external refs with the actual base object and update the children references. Fixes: go-git#484 Co-authored-by: Markus Wolf <mail@markus-wolf.de>
Since go-git/go-git#484 is fixed, go-git can fetch repos which it couldnt before. Signed-off-by: Or Shoval <oshoval@redhat.com>
Since go-git/go-git#484 is fixed, go-git can fetch repos which it couldnt before. Signed-off-by: Or Shoval <oshoval@redhat.com>
* go-git: Bump to v5.7.0 Signed-off-by: Or Shoval <oshoval@redhat.com> * bumper: Enable KSD auto bump Since go-git/go-git#484 is fixed, go-git can fetch repos which it couldnt before. Signed-off-by: Or Shoval <oshoval@redhat.com> --------- Signed-off-by: Or Shoval <oshoval@redhat.com>
* go-git: Bump to v5.7.0 Signed-off-by: Or Shoval <oshoval@redhat.com> * bumper: Enable KSD auto bump Since go-git/go-git#484 is fixed, go-git can fetch repos which it couldnt before. Signed-off-by: Or Shoval <oshoval@redhat.com> --------- Signed-off-by: Or Shoval <oshoval@redhat.com>
In a self-contained pack file delta references might point to base objects stored later in the file. In this case we need to replace placeholders for external refs with the actual base object and update the children references. Fixes: go-git#484 Co-authored-by: Markus Wolf <mail@markus-wolf.de>
We have seen the
reference delta not found
error message while cloning a repository.We created a minimal reproducible example: https://github.com/ZauberNerd/go-git-external-ref-thinpack
We already saw two other issues and a merged PR, mentioning this error message:
But those seem to only mention AWS CodeCommit (and we are on GHES) and even with #392 by @ga-paul-t merged, our reproducer is still able to reproduce the issue, therefore we are not sure, if it is the same issue or related in some other way.
Steps to reproduce:
git clone git@github.com:ZauberNerd/go-git-external-ref-thinpack.git
cd go-git-external-ref-thinpack/
git submodule update --init --recursive
go run main.go
The text was updated successfully, but these errors were encountered: