Make tests clear GIT_* environment variables
v2.028

 - no functional changes
 - make tests more robust when GIT_* environment variables are set
   (christopher madsen)