flux v0.31.2
GitRepository.spec.ref
Reference specifies the Git reference to resolve and monitor for changes, defaults to the 'master' branch.
| Field / Type | Description |
|---|---|
branch | Branch to check out, defaults to 'master' if no other field is defined. When GitRepositorySpec.GitImplementation is set to 'go-git', a shallow clone of the specified branch is performed. |
commit | Commit SHA to check out, takes precedence over all reference fields. When GitRepositorySpec.GitImplementation is set to 'go-git', this can be combined with Branch to shallow clone the branch, in which the commit is expected to exist. |
semver | SemVer tag expression to check out, takes precedence over Tag. |
tag | Tag to check out, takes precedence over Branch. |