IDEA-156445 disable GIT_TRACE for git commands executed from IDEA

This commit is contained in:
Kirill Likhodedov
2016-05-26 17:09:14 +03:00
parent 94372ddd12
commit 799388eee0
@@ -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());