Open paiv opened 3 years ago
For default branch, shallow cloning is used:
pod 'YPImagePicker', :git => 'https://github.com/Yummypets/YPImagePicker.git'
% bundle exec pod --verbose install
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Example`: (``)
Fetching external sources
-> Pre-downloading: `YPImagePicker` from `https://github.com/Yummypets/YPImagePicker.git`
> Git download
> Git download
$ /opt/local/bin/git clone https://github.com/Yummypets/YPImagePicker.git
/var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20200814-84318-1mwgz3f --template= --single-branch --depth 1
Cloning into '/var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20200814-84318-1mwgz3f'...
I've checked cocoapods-downloader
, and it seems to handle branch
and shallow cloning properly, so I suspect the issue is in how downloader is used.
Yes going to transfer in that repo. Want to try to make a PR for it?
@paiv Can you check my PR? https://github.com/CocoaPods/cocoapods-downloader/pull/111
Works for me.
% bundle exec pod --verbose install
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Sample`: (``)
Fetching external sources
-> Pre-downloading: `YPImagePicker` from `https://github.com/Yummypets/YPImagePicker.git`, branch `bypass-compression`
$ /opt/local/bin/git ls-remote https://github.com/Yummypets/YPImagePicker.git bypass-compression
9fd06737d0ed9039ede045a85526d92477a8c562 refs/heads/bypass-compression
> Git download
> Git download
$ /opt/local/bin/git clone https://github.com/Yummypets/YPImagePicker.git
/var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20210409-18815-n4kcym --template= --single-branch --depth 1 --branch bypass-compression
Cloning into '/var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20210409-18815-n4kcym'...
$ /opt/local/bin/git -C /var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20210409-18815-n4kcym checkout --quiet
9fd06737d0ed9039ede045a85526d92477a8c562
Report
What did you do?
bundle exec pod --verbose install
What did you expect to happen?
For Git dependencies, use
--depth 1
when cloning.What happened instead?
--depth 1
is not used:CocoaPods Environment
Stack
Installation Source
Plugins
Podfile