Git commit still uses the email from my Coder account
Previous context: https://discord.com/channels/747933592273027093/971231372373033030/1302557051834339368
Hello! I have removed the env values concerning Git in my template:
but Git still uses the email from my Coder account. Are there anything else I need to remove? Thanks
This is my template: https://github.com/katorlys-samples/coderv2-templates/blob/main/default/main.tf#L58
8 Replies
<#1307525869555679292>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I have defined the committer email in
.gitconfig
, but Git seems to ignore it, because there are GIT_AUTHOR_EMAIL
and GIT_COMITTER_EMAIL
environment variables present.You also need to remove the git-config module.
https://github.com/katorlys-samples/coderv2-templates/blob/4fcdef5ad7f9f451705a52dc4c0bbb66f4be5adf/default/main.tf#L154
GitHub
coderv2-templates/default/main.tf at 4fcdef5ad7f9f451705a52dc4c0bbb...
Coder CDE v2 workspace terraform templates. Contribute to katorlys-samples/coderv2-templates development by creating an account on GitHub.
It's setting these env variables
Thanks! Problem resolved!
closing the issue since you got it resolved
@Phorcys closed the thread.