Parfuemerie-Douglas / scaffolder-backend-module-azure-repositories

A collection of Backstage scaffolder backend modules for Azure repositories.
https://www.npmjs.com/package/@parfuemerie-douglas/scaffolder-backend-module-azure-repositories
Apache License 2.0
9 stars 21 forks source link

fix: switch branch with clone instead of checkout #34

Open GDivino opened 3 weeks ago

GDivino commented 3 weeks ago

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