chg: [config] Added permission check for .git directory

pull/3816/head
Steve Clement 2018-10-29 09:56:12 +09:00
parent d652927261
commit f3850747da
1 changed files with 1 additions and 0 deletions

View File

@ -3556,6 +3556,7 @@ class Server extends AppModel
{
$writeableFiles = array(
APP . 'Config' . DS . 'config.php' => 0,
ROOT . DS . '.git' . DS . 'ORIG_HEAD' => 0,
);
foreach ($writeableFiles as $path => &$error) {
if (!file_exists($path)) {