Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Make sure the correct environment variables are being read #1045

Merged
merged 2 commits into from
May 21, 2019

Conversation

shana
Copy link
Member

@shana shana commented Apr 16, 2019

Possible Confirmed fix for the wrong git being picked up in some cases. Fixes #1044

Even though environment variable keys are case-insensitive, they're exposed via a hashset that is case-sensitive. This means that in some cases, for eg when the environment variable is named Path, setting PATH=something causes an additional PATH env var to be created, and the actual original environment variable Path that the system reads is not updated. WTF.

This change looks up environment variables by a case insensitive search. It might fix #1044, since that problem is being caused by the wrong git being used in some operations, so I'm going to take a wild guess that maybe in those cases the wrong environment variable is getting read.

shana added 2 commits April 16, 2019 10:33
Even though environment variable keys are case-insensitive, they're
exposed via a hashset that is case-sensitive. This means that in
some cases, when the environment variable is named `Path` for eg,
setting PATH=something causes a duplication of the keys Path/PATH,
and the actual original environment variable that the system reads
is not updated. WTF.

This change looks up environment variables by a case insensitive
search. It might fix #1044, since that problem is being caused by
the wrong git being used in some operations, so I'm going to take
a wild guess that maybe in those cases the wrong environment variable
is getting read.
@shana shana requested a review from StanleyGoldman April 16, 2019 09:12
@shana shana merged commit d396f33 into master May 21, 2019
@shana shana deleted the fixes/1044-wrong-envvar branch May 21, 2019 08:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Having trouble with push...
1 participant