mammoth-garden-53682
07/01/2022, 11:38 PMauto.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…eager-football-6317
07/06/2022, 9:09 AMrefs/heads/<branch>
. It’s a bit of a quirk 🤨 , see https://github.com/pulumi/pulumi-kubernetes-operator/issues/103