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

Prevent submodules, .git subdirectories #10

Open
nadavoid opened this issue Nov 15, 2016 · 1 comment
Open

Prevent submodules, .git subdirectories #10

nadavoid opened this issue Nov 15, 2016 · 1 comment

Comments

@nadavoid
Copy link

Sometimes composer does a git checkout to get the code it needs. When it does so, the .git directory remains. When switching to git mode and committing the updates on pantheon, these packages are (partially?) added as submodules.

This shell command gets close:
find . | grep "\.git" | xargs rm -rf
but may delete too much, like .gitignore, .gitattributes, etc.

@nadavoid
Copy link
Author

nadavoid commented Nov 22, 2016

find . -mindepth 2 -type d -name .git | grep "\.git" | xargs rm -rf seems to work better (via Dustin LeBlanc in the Pantheon's #power-users slack).

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

1 participant