Make sure git environment is consistent for all test runs
Summary: This should make tests more repeatable across different environments.
Test Plan: Run tests with a non-empty .gitconfig, for instance having commit signing turned on
Reviewers: ardumont
Differential Revision: https://forge.softwareheritage.org/D310