Closed mpcjanssen closed 6 years ago
I suspect that in cases of automatic merge JGit looks for the username and email from the global .gitconfig file. If not present, then uses a system property.
I can change this so that it reads from .gitconfig and updates this when the plug-in preferences are saved.
@Phillipus that would be a sensible solution.
I've created a new release at:
https://www.archimatetool.com/plugins
To be clear:
And:
What is there against always storing the name/email in the repository settings?
I purposely don't set my global email for git to prevent leaking of work email in public repos or public email in work repos. The solution as it stands seems to set the global email after the first commit.
The solution as it stands seems to set the global email after the first commit.
This was done to provide a default for users who have not set global prefs.
If here would be an option to force storing of the name and email in repository settings only, that would be great. As it stands, it breaks my use of global and local settings.
If we get rid of this it might help:
Removed that last option. .gitconfig name/email can only be set from Preferences now. If not present these are stored for each repo.
Effectively - .gitconfig name/email is just a default if user does not enter name/email. If it does not exist these are always stored for each repo.
Thanks, commits look good. Will test before closing.
When the plugin automatically merges remote and local changes, the name used for the merge commit is the local login name. Instead the configured username and email from the configuration should be used. For example:
Configured user = Mark Janssen Configured email = mark.janssen@domain.com Windows 10 user = Mark