mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-156445 disable GIT_TRACE for git commands executed from IDEA
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user