mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user