diff --git a/src/plugins/mercurial/mercurialjobrunner.cpp b/src/plugins/mercurial/mercurialjobrunner.cpp
index 0c0be01ed38c08db1b32cb20fba8f0214ad08e1e..696b299787613441d8ce575111db27c45e5af585 100644
--- a/src/plugins/mercurial/mercurialjobrunner.cpp
+++ b/src/plugins/mercurial/mercurialjobrunner.cpp
@@ -165,7 +165,7 @@ QString MercurialJobRunner::msgTimeout(int timeoutSeconds)
 void MercurialJobRunner::setProcessEnvironment(QProcess &p)
 {
     QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
-    VCSBase::VCSBasePlugin::setProcessEnvironment(&env);
+    VCSBase::VCSBasePlugin::setProcessEnvironment(&env, false);
     p.setProcessEnvironment(env);
 }