Skip to content
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

git: Fix fetching missing commits #1032

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AriehSchneier
Copy link
Contributor

This fixes fetching commits that have a reference to them but are not in the pack files.

remote_test.go Show resolved Hide resolved
@pjbgf
Copy link
Member

pjbgf commented Feb 21, 2024

Please add a new test which reproduces the issue you are experiencing. That test should fail without the changes this PR introduces.

Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
Comment on lines -854 to -886
if remoteRefs[h] {
haves[h] = true
return nil
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this not cause a performance regression, as we may be increasing the memory churn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants