https://pulumi.com logo
Title
m

mammoth-garden-53682

07/01/2022, 11:38 PM
has anyone encountered this issue with
auto.GitRepo
:
failed to create stack: failed to create workspace, unable to enlist in git repo: unable to checkout branch: reference not found
using a PAT. Config is straight from example and looks like this:
auth := &auto.GitAuth{
		PersonalAccessToken: cfg.AuthToken,
	}

	repo := auto.GitRepo{
		Auth:   auth,
		URL:    cfg.Repo,
		Branch: cfg.Branch,

	}
	ctx := context.Background()
	s, err := auto.NewStackRemoteSource(ctx, "dev", repo)
If I don’t specify branch then it works…
e

eager-football-6317

07/06/2022, 9:09 AM
At present, if you supply a branch, it must be in the form
refs/heads/<branch>
. It’s a bit of a quirk 🤨 , see https://github.com/pulumi/pulumi-kubernetes-operator/issues/103
:thank-you: 1
1
(NB the last comment there)