Use the proper ref instead of always assuming it's a 'head' (might be a 'tag')
Some checks failed
Self Test / test (push) Failing after 3s
Self Test / release-test (push) Failing after 6s

This commit is contained in:
wispem-wantex 2025-06-07 09:26:18 -04:00
parent 90cab55fec
commit 9f83f0f384

View File

@ -59,7 +59,7 @@ func main() {
}
err = w.Checkout(&git.CheckoutOptions{
Branch: plumbing.ReferenceName("refs/heads/" + refName),
Branch: plumbing.ReferenceName(ref),
})
if err != nil {
log.Fatal(err)