forked from qt-creator/qt-creator
Git: Use Git process environment for Gerrit plugin processes
Change-Id: Iab0124d3aeed189c5ffd900c02ce6b87293b9c79 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
a846605870
commit
74a512892a
@@ -29,6 +29,8 @@
|
||||
|
||||
#include "gerritmodel.h"
|
||||
#include "gerritparameters.h"
|
||||
#include "../gitplugin.h"
|
||||
#include "../gitclient.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/progressmanager/progressmanager.h>
|
||||
@@ -294,6 +296,8 @@ QueryContext::QueryContext(const QStringList &queries,
|
||||
this, SLOT(processFinished(int,QProcess::ExitStatus)));
|
||||
connect(&m_process, SIGNAL(error(QProcess::ProcessError)),
|
||||
this, SLOT(processError(QProcess::ProcessError)));
|
||||
m_process.setProcessEnvironment(Git::Internal::GitPlugin::instance()->
|
||||
gitClient()->processEnvironment());
|
||||
m_progress.setProgressRange(0, m_queries.size());
|
||||
|
||||
// Determine binary and common command line arguments.
|
||||
|
Reference in New Issue
Block a user