From d7ace1aef4dc60f424c1ec39d637f7c1faea027c Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Tue, 9 Apr 2024 00:44:19 +0300 Subject: [PATCH] #8 change checkout. --- internal/source/gitlab/gitlab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/source/gitlab/gitlab.go b/internal/source/gitlab/gitlab.go index 095fa6c..64aabdf 100644 --- a/internal/source/gitlab/gitlab.go +++ b/internal/source/gitlab/gitlab.go @@ -460,7 +460,7 @@ func checkout(w *git.Worktree, ref plumbing.Reference) { logger.Debug(ctx, fmt.Sprintf("Checkout: %s", ref.Name().Short())) if err := w.Checkout(&git.CheckoutOptions{ - Branch: plumbing.ReferenceName(ref.Name().String()), + Branch: ref.Name(), }); err != nil { logger.Error(ctx, fmt.Sprintf("failed to reset: %v", err)) }