Thanks to visit codestin.com
Credit goes to github.com

Skip to content

creating a project from private git repo copies the .git folder #11978

@bonespiked

Description

@bonespiked

Are you certain it's a bug?

  • Yes, it looks like a bug

Is the issue caused by a plugin?

  • It is not a plugin issue

Are you using the latest v3 release?

  • Yes, I'm using the latest v3 release

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

I've set up a 'best practices' private repo for new serverless projects, and have the teams start by using:
npx serverless --template-url [email protected].... --name new-project

it downloads the template perfectly - however the source .git folder is included, so the remote for this new project is pointing at the template repository. The .git folder should be ignored/removed on template usage.

recreation steps:

  • create new project with any existing template
  • check into source control as your new template
  • start new project using git url git@..... as the --template-url
  • look at the .git/config file in the new folder

Service configuration (serverless.yml) content

N/A

Command name and used flags

serverless create --template-url

Command output

n/a

Environment information

Framework Core: 3.19.0
Plugin: 6.2.2
SDK: 4.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions