diff --git a/packages/sf-core/src/utils/https/index.js b/packages/sf-core/src/utils/https/index.js index 0a9d2932738..438b218bd52 100644 --- a/packages/sf-core/src/utils/https/index.js +++ b/packages/sf-core/src/utils/https/index.js @@ -391,6 +391,9 @@ export const downloadTemplate = async (inputUrl, newTemplateName) => { path.join(newServicePath, 'serverless.template.yml'), ) + // Remove .git if it exists + await removeFileOrDirectory(path.join(newServicePath, '.git')) + return newServicePath }