mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] only collect output, not error lines
EA-56331
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package git4idea.history;
|
||||
|
||||
import com.intellij.execution.process.ProcessOutputTypes;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -338,10 +339,12 @@ public class GitFileHistory {
|
||||
|
||||
@Override
|
||||
public void onLineAvailable(String line, Key outputType) {
|
||||
final GitLogRecord record = myAccumulator.acceptLine(line);
|
||||
if (record != null) {
|
||||
record.setUsedHandler(myHandler);
|
||||
myRecordConsumer.consume(record);
|
||||
if (outputType == ProcessOutputTypes.STDOUT) {
|
||||
GitLogRecord record = myAccumulator.acceptLine(line);
|
||||
if (record != null) {
|
||||
record.setUsedHandler(myHandler);
|
||||
myRecordConsumer.consume(record);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user