Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@bonespiked

Description

@bonespiked
Issue body actions

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 git@bitbucket.org.... --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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.