From b74ef9b8cc40d636e6c470283dcfe369706fa782 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Mon, 18 Jul 2022 20:54:29 -0500 Subject: [PATCH] nit: adding a comment to document what the fix is doing --- packages/create-astro/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 8c6cf67c732f..be6c6a6b9e51 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -108,6 +108,7 @@ export async function main() { const hash = args.commit ? `#${args.commit}` : ''; + // Don't touch the template name if a GitHub repo was provided, ex: `--template cassidoo/shopify-react-astro` const templateTarget = options.template.includes('/') ? options.template : `withastro/astro/examples/${options.template}#latest`;