Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Oct 10, 2017

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.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Oct 10, 2017

📌 Commit 4981004 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Oct 10, 2017

⌛ Testing commit 4981004 with merge 5c0e9f1...

bors added a commit that referenced this pull request Oct 10, 2017
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.
@bors
Copy link
Contributor

bors commented Oct 10, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5c0e9f1 to master...

@bors bors merged commit 4981004 into rust-lang:master Oct 10, 2017
@ehuss ehuss added this to the 1.22.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants