git2-rs
git2-rs copied to clipboard
libgit2 bindings for Rust
`RepositoryInitOptions::description` seems to be ignored: ```rust // src/main.rs fn main() -> Result { let _ = git2::Repository::init_opts( "test", git2::RepositoryInitOptions::new().description("test"), )?; Ok(()) } ``` ```console $ cargo run $ cat test/.git/description...
This is similar to https://github.com/alexcrichton/ssh2-rs/pull/170 and solves issue in https://github.com/rust-lang/rust/issues/69552 If dependencies include paths are not provided in environment (`DEP_SSH2_INCLUDE`, `DEP_OPENSSL_INCLUDE` and `DEP_Z_INCLUDE`) then the script attempts to use `pkg_config`...
`revparse_single` uses a git object name and not a file path - that means backslashes must be translated to slashes on windows. Otherwise the example fails: ``` E:\dev\git2-rs>.\target\debug\blame.exe examples\blame.rs error:...
Since `sh` is not available by default on Windows, git2-rs currently splits the credential helper string by whitespace, which attempts to execute an invalid command line in the case of...
- Initially reported at https://github.com/rust-lang/git2-rs/issues/813#issuecomment-1063449132 - [Full reproduction](https://github.com/demurgos/git2-segfault) - Git2 version `0.14.1`, with the feature `vendored-libgit2` The following Rust programs triggers a segfault due a null pointer dereference in `git_remote_fetch`:...
Using `git2` version 0.3.24. I'm trying to `clone` using a `RepoBuilder`. Relevant code snippet: ```rust let mut builder = git2::build::RepoBuilder::new(); if let Some(callbacks) = params.make_callbacks() { let mut options =...
I'm using `git2` to periodically check changes in a repository. Sometimes I start getting `SSL error: received early EOF; class=Ssl (16); code=Eof (-20)` errors while pulling from the repository (github)....
im trying to clone a repo by force into an existing one ```rust let repo = Repository::clone( package_template_repo_url, clone_destination.clone(), ); ``` apparently there is no `args` method for `builder pattern`....
According to [the libgit2 docs](https://github.com/libgit2/libgit2/blob/master/THREADING.md), it it safe to use objects on a thread other than the one they are created on (though there are some special considerations for older...