Skip to content

Unable to git init because of existig .git file #266

@yard-mschwartz

Description

@yard-mschwartz

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Generate an app using the tool
  2. Download and unpack
  3. Run git init in the root directory of the app

Expected behaviour

Initializing a Git repository, so you can put the app under version control.

Actual behaviour

$ git init
fatal: not a git repository: /home/[...]/Documents/projects/nextcloud/my-app/../../../.git/modules/nextcloudappstore/scaffolding/my-app

Additional info

The reason the git init command doesn't work, is that the generated app comes with is a .git file that contains the following line:

gitdir: ../../../.git/modules/nextcloudappstore/scaffolding/my-app

If this is not a bug, but intended behavior, maybe someone can explain the reasoning behind this, so I can learn. Also, I would like to know what the recommended way is to put a new app under version control.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejectionbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions