Skip to content

Fix initialization with Indexer::new #1160

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

Merged
merged 2 commits into from
May 5, 2025
Merged

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented May 5, 2025

This fixes an issue where calling Indexer::new as the first thing in a program fails since libgit2 is not initialized, and would instead return "no error" errors.

This also clarifies that the path to Indexer::new is a directory.

Closes #1159

ehuss added 2 commits May 5, 2025 07:45
Otherwise calling `Indexer::new` as the first thing in the program will
result in "no error" errors.
This updates the docs to clarify that the path is a *directory*.
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label May 5, 2025
@ehuss ehuss enabled auto-merge May 5, 2025 14:52
@ehuss ehuss added this pull request to the merge queue May 5, 2025
Merged via the queue into rust-lang:master with commit eef4592 May 5, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Waiting on review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexer::new() fails with message "no error"
2 participants