Skip to main content

Module remote

Module remote 

Source
Expand description

Dynamic remote repository cloning.

Corresponds to the dynamic-repository behaviour in GitVersion.Core/Core/GitPreparer.cs. Clones a remote repository to a temporary (or specified) location via --url and computes the version from the clone.

Transport: uses gix’s blocking client. Supports https/file and SSH (ssh:// and scp-style git@host:path). SSH authentication relies on the system ssh command (key files and agent).

Structs§

DynamicRepoOptions
Options for a dynamic clone.

Functions§

prepare
Clone a remote repository (always fresh) and check out the target branch/commit, then return the path to the working tree.