Skip to main content
Version: 1.8.x

Git (GitHub, GitLab)

Collects Git repositories. This plugin collects the repository as specified by the purl and by default only collects a depth of 1.

Accepts purl types: git, gitlab, github

Details

Transfer Tag

hoppr.core_plugins.collect_git_plugin

Supported PURLs

gitgitlabgithub

System Dependencies

Transfer File Example

---
schemaVersion: v1
kind: transfer

stages:
collect:
plugins:
- name: "hoppr.core_plugins.collect_git_plugin"
config:
process_timeout: 60

max_processes: 3

Configuration Options​

OptionDetails
git_commandString. Defaults to git. Command to be used to execute git commands. May be overridden with another command that uses the same syntax, or a fully qualified path if git is not on the default $PATH.
process_timeoutNumber of seconds to attempt collect before timeout. Default: 60
depthall, 1 or any int greater than 1. Sets the depth of the git clone command. Default: 1