[BUG] Set HOME to USER environment variable instead of SYSTEM environment variable

This repository was archived by the owner on Nov 9, 2017. It is now read-only.

This repository was archived by the owner on Nov 9, 2017. It is now read-only.

@ferventcoder

Description

We recently ran into an issue where HOME is set incorrectly and causes issues for other users logging into the same box - https://tickets.puppetlabs.com/browse/PUP-1453

We've narrowed it down to the Git installer causing the issue. We further narrowed it down to occur only when you set the option for "Run Git and included Unix tools from the Windows Command Prompt". When you do that it sets the HOME environment variable on SYSTEM.

git_sets_home_system_envvar

Would it be possible that you could set this on the USER environment variables instead?