Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11143

creating app with template using git url new app ends up with .git repository from the template

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cordova-cli

    Description

      creating app with template using git url new app ends up with .git repository from the template

      this creates a problem when user wants to add new app to git, since there is already a .git there.

      Also having the git history of a template is something that a template provider doesn't want.

      to reproduce

      👻 $ cordova create myapp --template https://github.com/apache/cordova-app-hello-world.git
      Creating a new cordova project.
      Retrieving https://github.com/apache/cordova-app-hello-world.git using git...
      Repository "https://github.com/apache/cordova-app-hello-world.git" checked out to git ref "master".
      /tmp
      👻 $ ls myapp/.git
      HEAD config hooks info objects refs
      branches description index logs packed-refs

      Attachments

        Activity

          People

            csantana Carlos Santana
            csantana Carlos Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: