Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitPython clone with depth
import git
def clone(cls, directory, url, depth=3):
return git.Repo.clone_from(url, directory, depth=depth)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment