pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
292 stars 45 forks source link

Log file #74

Open teanocrata opened 8 years ago

teanocrata commented 8 years ago

Hi Bruno,

In Config.php, when you check if log option is set, you assign to WRITE_TO_LOG constant the value of revert option in case it's set, Is it correct?

if (isset($opts['log'])) {
   define('WRITE_TO_LOG', $opts['revert'] ? $opts['revert'] : 'git_deploy_php_log.txt');
}

Maybe It would be something like:

if (isset($opts['log'])) {
   define('WRITE_TO_LOG', $opts['log'] ? $opts['log'] : 'git_deploy_php_log.txt');
}