Skip to main content

Module git_clone

Module git_clone 

Source

Functions§

clone_repository
Clones a Git repository to a temporary directory (deleted on drop) and returns it.
clone_repository_to
Clones a Git repository into dest, which must not exist or be empty.
get_repo_name_from_url
Gets repository name from Git URL for display purposes
is_git_url
Checks if a string is a valid Git URL
normalize_git_url
Normalizes a Git URL by removing .git suffix if present
redact_url
Hide credentials embedded in a URL (https://user:token@host → https://user:***@host).