Commit 74a51289 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

Git: Use Git process environment for Gerrit plugin processes

Change-Id: Iab0124d3aeed189c5ffd900c02ce6b87293b9c79
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent a8466058
......@@ -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.
......
......@@ -154,6 +154,8 @@ FetchContext::FetchContext(const QSharedPointer<GerritChange> &change,
connect(&m_process, SIGNAL(readyReadStandardOutput()),
this, SLOT(processReadyReadStandardOutput()));
m_process.setWorkingDirectory(repository);
m_process.setProcessEnvironment(Git::Internal::GitPlugin::instance()->
gitClient()->processEnvironment());
}
FetchContext::~FetchContext()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment