Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer issue #20

Closed
Hypoaristerolactotherapist opened this issue May 16, 2016 · 3 comments
Closed

Composer issue #20

Hypoaristerolactotherapist opened this issue May 16, 2016 · 3 comments

Comments

@Hypoaristerolactotherapist

Hi,

when you ship this (great, by the way) project to Packagist, could you remove the .git directory. It messes up my git installation by making your code as a submodule of my code that I have many pains to push.

Each time I update I need to manually remove your .git directory, add all your files to my change list and then I can commit.

Thanks

@gherkins
Copy link
Owner

Hi,

thanks, but isn't that the expected behaviour when installing via composer?
Packagist just fetches the code from github, doesn't it?

There might a workaround to prevent the .git folder from being created:
http://stackoverflow.com/questions/25981292/how-to-make-composer-not-create-a-git-directory-for-a-package

@Hypoaristerolactotherapist
Copy link
Author

I'll try that, thanks.
On all packages, only 4 projects downloaded their .git directory and where considered as submodules. I need to commit all of it as one to deploy from the central repository.

@gherkins
Copy link
Owner

That might be related to whether you install tagged releases or dev versions of a package:

https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants