Skip to content

Commit 8b9e4b9

Browse files
committed
Handle non-git Terrarium checkouts
1 parent 50bd32f commit 8b9e4b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/terrarium-install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async function prepareRepo(ref: string): Promise<void> {
166166
if (sourcePath && existsSync(join(sourcePath, "ansible", "site.yml"))) {
167167
info(`syncing local Terrarium source from ${sourcePath}`);
168168
syncLocalSourceRepo(sourcePath, REPO_DIR);
169-
} else if (existsSync(join(REPO_DIR, "ansible", "site.yml"))) {
169+
} else if (existsSync(join(REPO_DIR, ".git"))) {
170170
info(`updating existing checkout in ${REPO_DIR}`);
171171
await $`git -C ${REPO_DIR} fetch --tags origin`;
172172
await $`git -C ${REPO_DIR} checkout ${ref}`;

0 commit comments

Comments
 (0)