Skip to content

Commit

Permalink
fix: directly assign repo.checkout value with a tag if no branch is s…
Browse files Browse the repository at this point in the history
…upplied
  • Loading branch information
Callin Mullaney committed Oct 24, 2024
1 parent 54e14a6 commit 2202902
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/handlers/systemInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,15 @@ export default async function systemInstall(
);
}

let checkout = repo.checkout;
// Attempt to get latest tag if no branch was supplied.
if (!checkout) {
checkout = await getRepositoryLatestTag(repo.repository);
if (repo.checkout === undefined) {
repo.checkout = await getRepositoryLatestTag(repo.repository);
}

// Clone the system into the cache.
await cloneIntoCache('systems', [repo.name])({
repository: repo.repository,
checkout: checkout,
checkout: repo.checkout,
});

// Load the system configuration file.
Expand Down

0 comments on commit 2202902

Please sign in to comment.