-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Avoid to rewrite .git files on environment initialization #33
Comments
And what makes .git in your environments folder ? |
Some developers don't have access to production settings. In GIT you can't revoke access from selected directory only for repository. For this environment directory placed in another GIT repository. |
in this case it is better to use the glob(__DIR__ . '/*'); in place readdir() |
Decided not to change it in app template. It's quite specific case and could be adjusted manually if needed. |
Strange decision, "svn" is also quite specific case (not all projects used SVN as VCS), but it skipped. |
Oh, I was thinking about something totally diffrent :) |
Fix applied. Thanks! |
If environment directory placed on different git repository initialization script trying to rewrite it:
Fix:
rewrite https://github.com/yiisoft/yii2-app-advanced/blob/master/init#L94 to
The text was updated successfully, but these errors were encountered: