pygit2
pygit2 copied to clipboard
add support for depth in clone_repo
Very often I use --depth 1 to not clone full repo, would be great to have it implemented.
This does to libgit2/libgit2#3058 but nobody has cared enough to implement the necessary bits.
Seems to be added with this PR, soon to be mergedwith upstream I hope https://github.com/libgit2/libgit2/pull/6396
FYI: feature just landed in libgit2. https://github.com/libgit2/libgit2/issues/3058#issuecomment-1540940627
Any ETA for a new release? The "depth" parameter is already in the master branch https://github.com/libgit2/pygit2/blob/2accdf97ded8c3b777465e22c4e779692562fa9f/pygit2/decl/remote.h#L86C5-L86C5
Seems like this has been added now and it's documented here: https://www.pygit2.org/repository.html#pygit2.clone_repository
So, this issue can be closed I guess?