git: Don't let Git read other global or local configuration

This commit is contained in:
Hylke Bons 2018-06-16 11:53:46 +01:00
parent 99b6761acf
commit e37032b533

View file

@ -93,6 +93,12 @@ namespace Sparkles.Git {
SetEnvironmentVariable ("GIT_SSH_COMMAND", GIT_SSH_COMMAND);
SetEnvironmentVariable ("GIT_TERMINAL_PROMPT", "0");
// Don't let Git try to read the config options in PREFIX/etc or ~
SetEnvironmentVariable ("GIT_CONFIG_NOSYSTEM", "1");
SetEnvironmentVariable ("PREFIX", "");
SetEnvironmentVariable ("HOME", "");
SetEnvironmentVariable ("LANG", "en_US");
}