We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--depth
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
It would be great if this crate implements --depth option in FetchOptions, For example,
let mut fo = git2::FetchOptions::new(); fo.depth(1); // Prepare builder. let mut builder = git2::build::RepoBuilder::new(); builder.fetch_options(fo); // Clone the project. builder.clone( "[email protected]:rust-lang/git2-rs.git", Path::new("/tmp/git2-rs"), );
The text was updated successfully, but these errors were encountered:
Probably better to add as a request upstream in libgit2
Sorry, something went wrong.
This is a libgit2 limitation. Closing as a duplicate of libgit2/libgit2#3058.
It looks it's not a limitation anymore: libgit2/libgit2#3058 (comment)
No branches or pull requests
It would be great if this crate implements
--depth
option in FetchOptions, For example,The text was updated successfully, but these errors were encountered: