Allow user to configure some extra environment variables when running git commands

This patch resolves https://github.com/jensl/critic/issues/44 for me.