calm-agent-50232
01/18/2022, 6:29 AMerror":"failed to create local workspace: failed to create workspace, unable to enlist in git repo: unable to checkout branch: reference not found"
here’s the config:
spec:
projectRepo: <https://gitlab.com/mycompany/sre/pko-poc.git>
stack: mycompany/infra-apps/poc
branch: "refs/heads/main" #this works for some reason but /refs/heads/poc results in reference not found
#branch: "poc" #this also results in reference not found
repoDir: infra-apps
envRefs:
PULUMI_ACCESS_TOKEN:
type: Secret
secret:
name: pulumi-api-secret
key: accessToken
gitAuth:
accessToken:
type: Secret
secret:
name: git-secret
key: privateToken
this is a private gitlab repo but i have confirmed auth is successful and if i point it at /refs/heads/main
then it does update the pulumi project
thankssparse-park-68967
01/18/2022, 5:28 PMgit show-ref poc
? Make sure refs/heads/poc
shows up and that is what you want to refer to in the branch (no leading /
)calm-agent-50232
01/18/2022, 8:55 PMgit show-ref poc
45a9403d4cd84411f6b14db1718c7638b9896e0a refs/heads/poc
45a9403d4cd84411f6b14db1718c7638b9896e0a refs/remotes/origin/poc
branch: “refs/heads/main” #this works for some reason but /refs/heads/poc results in reference not foundyeah that’s a typo in my comment…. i tested without the leading /
sparse-park-68967
01/21/2022, 1:23 AMrefs/remotes/origin/poc
as the reference. The way go automation api for pulumi checks out the repo, only the default branch is available locally and other refs are not pulled down. It should work with the above variant.calm-agent-50232
01/26/2022, 4:46 AM