Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository: add .is_shallow to detect shallow clones #1058

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

rcoup
Copy link
Contributor

@rcoup rcoup commented Jan 8, 2021

Add support for git_repository_is_shallow() to Pygit2 to indicate whether a repository is a shallow clone or not.

libgit2 currently doesn't support shallow clones beyond detecting there's a non-empty .git/shallow file but it's helpful nonetheless.

@jdavid jdavid merged commit 7371d70 into libgit2:master Jan 8, 2021
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.

None yet

2 participants