pygit2 icon indicating copy to clipboard operation
pygit2 copied to clipboard

add support for depth in clone_repo

Open igor-raits opened this issue 9 years ago • 6 comments

Very often I use --depth 1 to not clone full repo, would be great to have it implemented.

igor-raits avatar May 06 '16 14:05 igor-raits

This does to libgit2/libgit2#3058 but nobody has cared enough to implement the necessary bits.

carlosmn avatar May 06 '16 16:05 carlosmn

Seems to be added with this PR, soon to be mergedwith upstream I hope https://github.com/libgit2/libgit2/pull/6396

omniproc avatar Oct 15 '22 12:10 omniproc

FYI: feature just landed in libgit2. https://github.com/libgit2/libgit2/issues/3058#issuecomment-1540940627

omniproc avatar May 10 '23 07:05 omniproc

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

vitalypugach avatar Aug 10 '23 15:08 vitalypugach

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?

omniproc avatar Mar 14 '24 09:03 omniproc