mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] fix remote operation execution on Linux
Was broken in 0ee84fb5c GitOrigin-RevId: c7031826c77f44371c7bfa303eafdd8241dfdc11
This commit is contained in:
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())
|
||||
|
||||
Reference in New Issue
Block a user