Skip to content

Fix test branch::tests::name_is_valid #740

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 1 commit into from
Aug 23, 2021

Conversation

arxanas
Copy link
Contributor

@arxanas arxanas commented Aug 23, 2021

This was an easy fix for a frustrating-to-debug issue. Closes #728. This is the same test failure mentioned in #721 (comment).

The `Branch::name_is_valid` function allocates memory in `libgit2`, so we need
to initialize the memory allocator first via `git_libgit2_init`.
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

@ehuss ehuss merged commit 6db8f4e into rust-lang:master Aug 23, 2021
@arxanas arxanas deleted the name-is-valid-test branch August 23, 2021 19:37
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.

branch::tests::name_is_valid failure
2 participants