From 799388eee0062a3d01df7d94adc37c048eef4a8e Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 26 May 2016 17:08:01 +0300 Subject: [PATCH] IDEA-156445 disable GIT_TRACE for git commands executed from IDEA --- plugins/git4idea/src/git4idea/commands/GitHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/git4idea/src/git4idea/commands/GitHandler.java b/plugins/git4idea/src/git4idea/commands/GitHandler.java index 52aec9f6388e..d24185fd0724 100644 --- a/plugins/git4idea/src/git4idea/commands/GitHandler.java +++ b/plugins/git4idea/src/git4idea/commands/GitHandler.java @@ -435,6 +435,7 @@ public abstract class GitHandler { } } setUpLocale(); + unsetGitTrace(); myCommandLine.getEnvironment().clear(); myCommandLine.getEnvironment().putAll(myEnv); // start process @@ -457,6 +458,10 @@ public abstract class GitHandler { myEnv.putAll(VcsLocaleHelper.getDefaultLocaleEnvironmentVars("git")); } + private void unsetGitTrace() { + myEnv.put("GIT_TRACE", "0"); + } + private void setupHttpAuthenticator() throws IOException { GitHttpAuthService service = ServiceManager.getService(GitHttpAuthService.class); myEnv.put(GitAskPassXmlRpcHandler.GIT_ASK_PASS_ENV, service.getScriptPath().getPath());