Ninety-nine percent of time our team commits on local development boxes and pushes commits, in which case the authorship info on commits is correct. However, under times of high-stress someone will tweak something directly on the dev server and commit from there. When that happens the author info in the commit defaults to the shared deployment account.
Is there a way to prompt users for their author info on commit? They're not going to remember to do --author.
Some things I've looked at, but couldn't quite get across the finish line are:
- using a client side hook to reject commits with 'deploy' in the author string
- looked for a setting to always-prompt for author info
- try to automatically set author based on the ssh-key used to login to the box
Is there a way to get one of those to work or a good way to do it?