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

use --depth 1 for git clone + use separate git fetch to download rev #1447

Closed
wants to merge 1 commit into from
Closed

use --depth 1 for git clone + use separate git fetch to download rev #1447

wants to merge 1 commit into from

Conversation

ubunatic
Copy link

Summary of changes

  • use --depth 1 with git clone to get a shallow clone of a required repo
  • use a separate git fetch --depth 1 to fetch a specific revision from the shallow clone

Closes #1446

Pull Request Checklist

  • Changes have tests
  • News fragment added in changelog.d. See documentation for details

Manual Tests

I did not find any git-download tests to extend and currently only tested manually using:

@ubunatic
Copy link
Author

closing, since this is already discussed in pip

@ubunatic ubunatic closed this Jul 31, 2018
@mrx23dot
Copy link

What was the conclusion? It's still not implemented in 2022.

@ubunatic
Copy link
Author

There was some discussion about ways to configure it in the URL, but I do not know the status of that (see: pypa/pip#2432 (comment)).
At least having it as default is off the table to safe backwards compatibility.

@mrx23dot
Copy link

Thanks, we can always manually git clone a shallow one and install it locally in case repo is huge.

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.

2 participants