tests: sanitize more git environment variables