Git wants an email address these days. (Also a nit typo.)
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is fine... feels a little off.
Is there a script to run the docker container? Couldn't we bring it in there or when we build it?
I don't know use case for docker here. Just for tests? Or are we actually using these scripts for a dev environment we might push? Because in that case this feels wrong.
No, it's just a new requirement that doesn't matter when it's being anonymously built in Docker. (This is only a utility function for those interested in Docker builds.)
I don't need an email address.
$ git cherry-pick -n 6c6a905363debe5fc07f44e97d0f9c9308f7db64 // no email settings, no errors $ git --version git version 2.20.1
Maybe, this issue is from a certain git version.
Yes. The cherry pick failed because git wanted an email address for the commit. Since the commit is an anonymous commit in a container, I chose to provide an anonymous email address.
It's true that adding -n will avoid the commit, but doing so would be a functional change (leaving uncommitted changes in the working directory). This might not matter but it's more appropriate to anonymize the email address (since it's an owner-less docker image) and keeping the functionality as it is.