has anyone encountered this issue with `auto.GitRe...
# automation-api
m
has anyone encountered this issue with
auto.GitRepo
:
Copy code
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:
Copy code
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
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
🙏 1
1
(NB the last comment there)