Skip to content

git_clone

Source

Hook to create clone a repo. Wraps git python clone.Source API

Inputs

Name Type Default Required Description
url str None False valid git url - Docs
to_path str None False Path to which the repository should be cloned to
progress str None False See ‘git.remote.Remote.push’.
env dict None False Optional dictionary containing the desired environment variables. Note: Provided variables will be used to update the execution environment for git. If some variable is not specified in env and is defined in os.environ, value from os.environ will be used. If you want to unset some variable, consider providing empty string as its value.
multi_options list None False A list of Clone options that can be provided multiple times. One option per list item which is passed exactly as specified to clone. For example [‘–config core.filemode=false’, ‘–config core.ignorecase’, ‘–recurse-submodule=repo1_path’, ‘–recurse-submodule=repo2_path’]

Arguments

Position Argument Type
1 url str
2 to_path str

Returns

None

Examples

compact->: git_clone https://github.com/robcxyz/tackle-provider
expanded:
  ->: git_clone
  url: https://github.com/robcxyz/tackle-pypackage
  to_path: output/path