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)) }