diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-13 15:18:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-13 15:20:51 +0900 |
| commit | eeaf26e7a24c5c51c64fc333284015224e851e8c (patch) | |
| tree | 88c24355b0b4d9ea3bf2b5548c63282d50c44729 /internal/rosa/git.go | |
| parent | b587caf2e863902eb04a6540462db5852fd1a0b5 (diff) | |
internal/rosa: wrapper around git helper
This results in much cleaner call site for the majority of use cases.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/git.go')
| -rw-r--r-- | internal/rosa/git.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go index e39e0c31..9b9fa2d6 100644 --- a/internal/rosa/git.go +++ b/internal/rosa/git.go @@ -114,3 +114,8 @@ git \ rm -rf /work/.git `, resolvconf()) } + +// newTagRemote is a helper around NewViaGit for a tag on a git remote. +func (t Toolchain) newTagRemote(url, tag, checksum string) pkg.Artifact { + return t.NewViaGit(url, "refs/tags/"+tag, mustDecode(checksum)) +} |
