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

download only branch with --depth 1 was not work on cocoapods 1.1.1 #66

Open
simson2010 opened this issue Jan 21, 2017 · 0 comments
Open

Comments

@simson2010
Copy link

I found line 24 of git.rb
return options unless options[:branch]

but I was setting the right branch in my Podfile using :branch => 'xxx'. the this preprocess function will always to check the git ls-remote and replace the options[:branch] with options[:commit], then the clone_argument( force_head, shallow_clone) function would bypass the "--depth 1" paraments when downloading the source from my github, and always download the full .git and then checkout the the branch instead only download the specified branch from my github.

could you have a look at?

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

No branches or pull requests

1 participant