Summary:
It seems there are other tests using `run-tests.py` that do not want the git
env reset behavior. Let's move the env reset logic to a separate optional script.
Reviewed By: DurhamG
Differential Revision: D33752371
fbshipit-source-id: 9465f251ec410595652f1335d1017974876953d7