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

Add a limit to the size for cloning #10

Open
paul999 opened this issue Aug 15, 2014 · 3 comments
Open

Add a limit to the size for cloning #10

paul999 opened this issue Aug 15, 2014 · 3 comments
Assignees

Comments

@paul999
Copy link
Member

paul999 commented Aug 15, 2014

https://api.github.com/repos/phpbb/phpbb
http://stackoverflow.com/questions/8646517/see-the-size-of-a-github-repo-before-cloning-it

@paul999 paul999 self-assigned this Aug 15, 2014
@nickvergessen
Copy link
Contributor

Use --depth=1 on clone, if you do not need the commit history

@paul999
Copy link
Member Author

paul999 commented Aug 16, 2014

The issue is that the lib I use for cloning doesnt seem to support that.

@tierra
Copy link
Contributor

tierra commented Jun 6, 2015

For what it's worth, gitlib did make the cloneRepository() method public almost a year ago:
gitonomy/gitlib@02ad523d

This would allow you to call cloneRepository() directly instead of cloneBranchTo(), which would give you the ability to specify custom arguments including --depth.

The unfortunate news is that development seems to be stagnant on gitlib, and there still hasn't been a new release containing that change, so you'd have to change the composer package version to 1.0.*@dev. I guess you're already using 0.1.*@dev anyway though, so maybe that would be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants