Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kirby user with no name -> commit author #32

Open
movingwater opened this issue Jan 9, 2023 · 2 comments
Open

Kirby user with no name -> commit author #32

movingwater opened this issue Jan 9, 2023 · 2 comments

Comments

@movingwater
Copy link

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?

@JonasLeonhard
Copy link

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.

@hdodov
Copy link
Contributor

hdodov commented Feb 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants