diff --git a/core/src/plugins/meta.git/class.GitManager.php b/core/src/plugins/meta.git/class.GitManager.php index 2583133e04..dc808032fd 100644 --- a/core/src/plugins/meta.git/class.GitManager.php +++ b/core/src/plugins/meta.git/class.GitManager.php @@ -284,10 +284,13 @@ private function commitChanges($path = null) $command = $git->getCommand("commit"); $command->setOption("a", true); $userId = "no user"; + $mail = "mail@mail.com"; if (AuthService::getLoggedUser()!=null) { $userId = AuthService::getLoggedUser()->getId(); + $mail = AuthService::getLoggedUser()->personalRole->filterParameterValue("core.conf", "email", AJXP_REPO_SCOPE_ALL, "mail@mail.com"); } $command->setOption("m", $userId); + $command->setOption("author", "$userId <$mail>"); //$command->addArgument($path); try {