Prune GIT variables from the inherited environment

Incase we do a git commit that launches TextMate, it will inherit a bunch of variables from git, including GIT_DIR, which will cause issues for the Git bundle.
This commit is contained in:
Allan Odgaard
2012-08-11 20:37:05 +02:00
parent 5f55fcb514
commit 512e5fdede

View File

@@ -7,7 +7,7 @@ namespace oak
{
static bool exclude_variable (std::string const& variable)
{
static std::string const BlackListedPrefixes[] = { "TM_", "OAK_", "DIALOG", "MAKE", "MFLAGS" };
static std::string const BlackListedPrefixes[] = { "TM_", "OAK_", "DIALOG", "MAKE", "MFLAGS", "GIT_" };
iterate(prefix, BlackListedPrefixes)
{
if(variable.find(*prefix) == 0)