Skip to content

add depth parameter to git clone command #13145

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

Merged
merged 1 commit into from
Jul 16, 2022
Merged

Conversation

anilbey
Copy link
Contributor

@anilbey anilbey commented Jul 16, 2022

Description

With depth=1 only the last commit is retrieved hence the command takes less time to clone the repository.

Reference

  1. https://git-scm.com/docs/git-clone

@thijsmie
Copy link

Do you think adding a --single-branch will further speed up the clone? I checked, there is currently 11 branches on the relevant repository.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@ilevkivskyi ilevkivskyi merged commit 16363d3 into python:master Jul 16, 2022
@anilbey
Copy link
Contributor Author

anilbey commented Jul 16, 2022

Do you think adding a --single-branch will further speed up the clone? I checked, there is currently 11 branches on the relevant repository.

@thijsmie thanks, I didn't know that was possible.

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.

3 participants