Skip to content

Git shallow cloning is not used when branch is set #106

Open
@paiv

Description

@paiv

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:

% 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`, 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/d20200814-84273-1nidkbq --template=
     Cloning into '/var/folders/9v/8vsfgn095n58ypf76vmt6kjr0000gn/T/d20200814-84273-1nidkbq'...

CocoaPods Environment

Stack

   CocoaPods : 1.10.0.beta.2
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.6 (19G73)
       Xcode : 11.6 (11E708)
         Git : git version 2.28.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/user/Downloads/some-b/.bundle/ruby/2.6.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Podfile

platform :ios, '11.0'

target 'Example' do
  use_frameworks!

  pod 'YPImagePicker', :git => 'https://github.com/Yummypets/YPImagePicker.git', :branch => 'bypass-compression'
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions