From 512e5fdede66d2dd013cce9e73fd481f0bf16975 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Sat, 11 Aug 2012 20:37:05 +0200 Subject: [PATCH] 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. --- Frameworks/io/src/environment.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/io/src/environment.cc b/Frameworks/io/src/environment.cc index 535baf52..cd755abc 100644 --- a/Frameworks/io/src/environment.cc +++ b/Frameworks/io/src/environment.cc @@ -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)