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

Fix implementation of GitDatabase::contains #4698

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Fix implementation of GitDatabase::contains #4698

merged 1 commit into from
Jul 1, 2024

Conversation

ibraheemdev
Copy link
Member

Summary

GitDatabase::contains previously only parsed the commit to see if it was a valid hash and didn't verify if the commit existed in the object database. This led to the database never being updated.

Resolves #4378.

Test Plan

Added a test that fails without this change.

@charliermarsh charliermarsh added the bug Something isn't working label Jul 1, 2024
@ibraheemdev ibraheemdev force-pushed the git-bug branch 2 times, most recently from 3b78ffb to 2da9532 Compare July 1, 2024 16:44
@ibraheemdev ibraheemdev merged commit 5849943 into main Jul 1, 2024
47 checks passed
@ibraheemdev ibraheemdev deleted the git-bug branch July 1, 2024 17:01
@zanieb
Copy link
Member

zanieb commented Jul 2, 2024

@ibraheemdev probably worth using a title that's more descriptive of the effect in the future so we don't need to go read the original issue to write the changelog entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache issue when installing from git urls with once missing refs
3 participants