Class: GitHelper
- Inherits:
-
Object
- Object
- GitHelper
- Defined in:
- lib/cocoapods-allowlist/helpers/git.rb
Overview
For execute git commands
Class Method Summary collapse
-
.clone_from_branch(url, destination, branch) ⇒ Object
Download from a specific branch.
-
.get_latest_commit(directory) ⇒ Object
Get the latest commit hash.
Class Method Details
.clone_from_branch(url, destination, branch) ⇒ Object
Download from a specific branch
6 7 8 |
# File 'lib/cocoapods-allowlist/helpers/git.rb', line 6 def self.clone_from_branch(url, destination, branch) Command.execute("git clone --quiet --depth 1 -b #{branch} --single-branch #{url} #{destination}") end |