kirby-git icon indicating copy to clipboard operation
kirby-git copied to clipboard

Kirby user with no name -> commit author

Open movingwater opened this issue 2 years ago • 2 comments

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?

movingwater avatar Jan 09 '23 08:01 movingwater

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.

JonasLeonhard avatar Feb 01 '23 22:02 JonasLeonhard

@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.

hdodov avatar Feb 03 '23 16:02 hdodov