While trying to clone a repo using the azure:repo:clone action, I noticed that I am unable to checkout to a branch other than master.
I tested it out, and found that Git.checkout from core backstage was not working as expected. When utilizing the Git.checkout function, the branch is not found.
Solution
To solve this, I tried utilizing the clone function instead to clone the origin branch straight, so the need for the checkout function is not needed.
Problem
While trying to clone a repo using the
azure:repo:clone
action, I noticed that I am unable to checkout to a branch other than master.I tested it out, and found that Git.checkout from core backstage was not working as expected. When utilizing the Git.checkout function, the branch is not found.
Solution
To solve this, I tried utilizing the clone function instead to clone the origin branch straight, so the need for the checkout function is not needed.
Links
33