I have a submodule within a Node app, and at certain points the Node app makes a commit and push to the submodule’s repo.
I’m using the simple-git NPM to run the git commands, but these are failing with errors due to missing user name and email:
fatal: unable to auto-detect email address (got ‘render@srv-cnriougl5elc73b246o0-hibernate-f49fc58b7-pfhvd.(none)’)
I’ve tried:
- setting the user details explicitly in the .gitconfig in the submodule
- setting the user details explicitly in the .gitconfig in the main project
- setting the user details explicitly in the main project with a script during deploy
- setting the user details explicitly in the simple-git config within the project
Is there somewhere else that this setting can be configured?