beber pushed a commit to branch master. http://git.enlightenment.org/website/www.git/commit/?id=e5644e7d4b98050df22f479789529b639a92f2bf
commit e5644e7d4b98050df22f479789529b639a92f2bf Author: Bertrand Jacquin <bertr...@jacquin.bzh> Date: Mon Apr 13 23:14:45 2015 +0100 MEDIUM: gitbacked/conf: Add a nice git author and respect author name and email --- public_html/lib/plugins/gitbacked/conf/default.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/public_html/lib/plugins/gitbacked/conf/default.php b/public_html/lib/plugins/gitbacked/conf/default.php index c3baffc..8bd3bb9 100644 --- a/public_html/lib/plugins/gitbacked/conf/default.php +++ b/public_html/lib/plugins/gitbacked/conf/default.php @@ -15,3 +15,18 @@ $conf['commitMediaMsgDel'] = 'Wiki media %media% deleted by %user%'; $conf['repoPath'] = $GLOBALS['conf']['savedir']; $conf['repoWorkDir'] = $GLOBALS['conf']['savedir']; $conf['addParams'] = ''; + +/* Define a nice author (until addParams is fixed) */ +$_git_auhor_name = 'www.enlightenment.org'; +$_git_auhor_mail = 'no-re...@enlightenment.org'; + +if (isset($GLOBALS['USERINFO']['name'])) { + $_git_auhor_name = $GLOBALS['USERINFO']['name']; +} + +if (isset($GLOBALS['USERINFO']['mail'])) { + $_git_auhor_mail = $GLOBALS['USERINFO']['mail']; +} + +putenv("GIT_AUTHOR_NAME='$_git_auhor_name'"); +putenv("GIT_AUTHOR_EMAIL='$_git_auhor_mail'"); --