kirby-git
kirby-git copied to clipboard
Kirby user with no name -> commit author
Hi, just realised if no name is definied for a kirby user the commit's author is "oblikweare". I would prefer to just use the email addresse. Or is there a way to define the other?
Hey @movingwater, i just had the same problem and fixed it by changing the commit function in site/plugins/git/lib/Git.php . There you can ajust the $name and $email to your preferences. Hope that helps you.
@movingwater @JonasLeonhard you should be able to change the author name and email by running the following commands on the production server:
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
It's better to do it this way, because commits made outside the plugin (e.g. manually from SSH) will also have a proper author.