-
Notifications
You must be signed in to change notification settings - Fork 264
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
Why 'user.name' and/or 'user.email' must be configured ? #263
Comments
The committer is set to the local user. The author is set to the one from
the origin/workflow configuration.
…On Wed, Oct 25, 2023 at 2:37 PM Alex Trotsenko ***@***.***> wrote:
I run copybara on our CI and faced 'user.name' and/or 'user.email' are
not configured
<https://github.com/google/copybara/blob/c23479abd19d4091ce84f9c4fe61cb126bb10b3b/java/com/google/copybara/git/GitDestination.java#L162>
issue.
As far as I see, currently the only way to avoid setting git config
--global is to specify --git-committer-email command line option.
Why authoring = authoring.pass_thru("Copybara ***@***.***>"),
in sky file is not enough?
—
Reply to this email directly, view it on GitHub
<#263>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHJWQE72P7HF3AXXGBF3H3YBFL6DAVCNFSM6AAAAAA6P2Y3RWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3DEMBQG4ZDINI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@mikelalcon thanks for the quick reply and information provided. Indeed it is absolutely makes sense. I am wondered if you think it worth to also add the option to specify git committer in the sky file? |
We have |
@mikelalcon thanks for the feedback and confirmation 👍 Since it also makes sense for you to keep it static - may I possibly ask you if you are happy to consider having this property in the sky file as well for simplicity? |
@mikelalcon just in case: if you find it helpful - I am happy to submit the PR. |
Sounds good! could you use an authoring object? (Receive string from starlark in the format of "foo <foo@example.com>" and then convert it to |
Thanks for the confirmation and your suggestion about re-using Author. I was about to ask if it ok for you as well :) |
I run copybara on our CI and faced 'user.name' and/or 'user.email' are not configured issue.
As far as I see, currently the only way to avoid setting
git config --global
is to specify--git-committer-email
command line option.Why
authoring = authoring.pass_thru("Copybara <copybara@example.com>"),
in sky file is not enough?The text was updated successfully, but these errors were encountered: