[git] fix remote operation execution on Linux

Was broken in 0ee84fb5c

GitOrigin-RevId: c7031826c77f44371c7bfa303eafdd8241dfdc11
This commit is contained in:
Aleksandr Krasilnikov
2019-05-21 16:18:35 +03:00
committed by intellij-monorepo-bot
parent ffbee57d91
commit b82dfdb0f9
@@ -65,6 +65,12 @@ public abstract class GitHandler {
@SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
protected boolean mySilent; // if true, the command execution is not logged in version control view
@SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
private boolean myWithLowPriority;
@SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
private boolean myWithNoTty;
@SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
private long myStartTime; // git execution start timestamp
private static final long LONG_TIME = 10 * 1000;
@@ -194,14 +200,14 @@ public abstract class GitHandler {
* Execute process with lower priority
*/
public void withLowPriority() {
ExecUtil.setupLowPriorityExecution(myCommandLine);
myWithLowPriority = true;
}
/**
* Detach git process from IDE TTY session
*/
public void withNoTty() {
ExecUtil.setupNoTtyExecution(myCommandLine);
myWithNoTty = true;
}
/**
@@ -476,6 +482,9 @@ public abstract class GitHandler {
checkNotStarted();
try {
if (myWithLowPriority) ExecUtil.setupLowPriorityExecution(myCommandLine);
if (myWithNoTty) ExecUtil.setupNoTtyExecution(myCommandLine);
myStartTime = System.currentTimeMillis();
String logDirectoryPath = myProject != null
? GitImplBase.stringifyWorkingDir(myProject.getBasePath(), myCommandLine.getWorkDirectory())