Skip to content

add depth option to clone_repository()#1245

Merged
jdavid merged 1 commit intolibgit2:masterfrom
nikitalita:clone-depth
Nov 14, 2023
Merged

add depth option to clone_repository()#1245
jdavid merged 1 commit intolibgit2:masterfrom
nikitalita:clone-depth

Conversation

@nikitalita
Copy link
Contributor

This adds a depth option to clone_repository() for shallow clones, which has been supported since libgit2 1.7.0: libgit2/libgit2@190a4c5

Note: The test for the shallow clone is currently online only due to libgit2 only supporting shallow clones of remote repositories. The git cli allows you to shallow clone a local repository if you use a file URI, but it seems that libgit2 doesn't support that.

fixes #1243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support shallow cloning

2 participants