- Notifications
You must be signed in to change notification settings - Fork2.5k
Support setting oid type for in-memory repositories#6671
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Great catch. Thanks for the fix. I wonder if we should take a |
@ethomson - I'd wondered the same thing, but as it appears the basic purpose of git_repository_new is similar to git_index_new for the creation of blank/in-memory structure, it seemed sufficient to take the same approach as git_index_new for the time being at least. Could be revised if needed later with minimal disruption while it's still behind the experimental feature toggle. My immediate goal was getting things working for my existing use case without the experimental flag enabled as part of upgrading to latest version. |
Makes sense. Thanks again@kcsaul |
This change adds support for setting oid type when creating an in-memory repository using git_repository_new (in conjunction with using custom backends).
Needed to prevent "ambiguous lookup - OID prefix is too short" error during git_object_lookup_prefix.