void () { Map<String, String> executionEnvironment = myCommandLine.getEnvironment(); executionEnvironment.clear(); if (myExecutable.isLocal()) { executionEnvironment.putAll(EnvironmentUtil.getEnvironmentMap()); } executionEnvironment.putAll(myExecutable.getLocaleEnv()); executionEnvironment.putAll(myCustomEnv); executionEnvironment.put(GitCommand.IJ_HANDLER_MARKER_ENV, "true"); if (!shouldSuppressReadLocks()) { VcsEnvCustomizer.EP_NAME.forEachExtensionSafe(customizer -> { customizer.customizeCommandAndEnvironment(myProject, executionEnvironment, myExecutableContext); }); executionEnvironment.remove("PS1"); // ensure we won't get detected as interactive shell because of faulty customizer } }