-
Notifications
You must be signed in to change notification settings - Fork 4
Unable to git init because of existig .git file #266
Copy link
Copy link
Open
Labels
0. Needs triagePending approval or rejectionPending approval or rejectionbugSomething isn't workingSomething isn't working
Description
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
- Generate an app using the tool
- Download and unpack
- Run
git initin 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0. Needs triagePending approval or rejectionPending approval or rejectionbugSomething isn't workingSomething isn't working