cocoapods-downloader icon indicating copy to clipboard operation
cocoapods-downloader copied to clipboard

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

Open simson2010 opened this issue 8 years ago • 0 comments

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?

simson2010 avatar Jan 21 '17 15:01 simson2010