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:
Orgad Shaneh
2013-05-16 22:00:00 +03:00
committed by Tobias Hunger
parent a846605870
commit 74a512892a
2 changed files with 6 additions and 0 deletions

View File

@@ -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()