Skip to content

Is it possible to do git clone --depth=1 <repository> with libgit2? #6526

Answered by lrm29
nikitavoloboev asked this question in Q&A
Discussion options

You must be logged in to vote

The issue you link to (#3508) is for shallow support, not sparse checkouts. Shallow refers to the amount of history, sparse checkout refers to how much of the working folder is checked out.

To use #6396 you'll need to build libgit2 from a fork, until it is merged into libgit2.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nikitavoloboev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants