Auto merge of #4602 - ehuss:fix-new-test-windows, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 10 Oct 2017 17:58:30 +0000 (17:58 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Oct 2017 17:58:30 +0000 (17:58 +0000)
commit5c0e9f1500dbfea8f3fa26a9ac3a89c5d8439dab
treeefd5e754b247677b30a4da11b90f96c5d235b827
parent463e850146e9454b8b953ff73772a35b286b58e7
parent4981004deb2956d8618b414f993844900438637f
Auto merge of #4602 - ehuss:fix-new-test-windows, r=alexcrichton

Allow test to pass if user has ~/.gitconfig on Windows.

The `new` test will fail on Windows if you have `~/.gitconfig` configured with a username/email.  This is because libgit2 searches quite a few environment variables hunting for a config file.  Rather than adjusting other environment variables (I think at a minimum it would be `%HOMEDRIVE%%HOMEPATH%` and `%USERPROFILE%`), this just adds an empty config file since libgit2 will stop at the first one it finds.