X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/4137e993d11e926ae28343c1eeac1a46977efd47..HEAD:/src/phorkie/Repository/Post.php diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index b9489e7..ce9e52c 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -167,13 +167,20 @@ class Repository_Post 'author', $sessionData['name'] . ' <' . $sessionData['email'] . '>' ) + ->setEnvVar('GIT_AUTHOR_NAME', $sessionData['name']) + ->setEnvVar('GIT_AUTHOR_EMAIL', $sessionData['email']) + ->setEnvVar('GIT_COMMITTER_NAME', $sessionData['name']) + ->setEnvVar('GIT_COMMITTER_EMAIL', $sessionData['email']) ->execute(); //FIXME: git needs ref BEFORE add //quick hack until http://pear.php.net/bugs/bug.php?id=19605 is fixed - //also waiting for https://pear.php.net/bugs/bug.php?id=19623 $vc->getCommand('notes --ref=identity add') ->setOption('force') ->setOption('message', "$notes") + ->setEnvVar('GIT_AUTHOR_NAME', $sessionData['name']) + ->setEnvVar('GIT_AUTHOR_EMAIL', $sessionData['email']) + ->setEnvVar('GIT_COMMITTER_NAME', $sessionData['name']) + ->setEnvVar('GIT_COMMITTER_EMAIL', $sessionData['email']) ->execute(); //update info for dumb git HTTP transport //the post-update hook should do that IMO, but does not somehow