We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
branch::tests::name_is_valid
1 parent b863968 commit 8d2a86cCopy full SHA for 8d2a86c
src/branch.rs
@@ -30,6 +30,7 @@ impl<'repo> Branch<'repo> {
30
31
/// Ensure the branch name is well-formed.
32
pub fn name_is_valid(name: &str) -> Result<bool, Error> {
33
+ crate::init();
34
let name = CString::new(name)?;
35
let mut valid: libc::c_int = 0;
36
unsafe {
0 commit comments