Make the git plugin look for the binary in the path specified in the settings. Previously, the environment was passed to the process, but that did not affect the location of the binary.

This commit is contained in:
Friedemann Kleint
2009-02-19 17:47:44 +01:00
committed by unknown
parent 890220d5b4
commit 90b094e832
9 changed files with 173 additions and 13 deletions

View File

@@ -43,9 +43,11 @@ namespace Internal {
class GitCommand : public QObject
{
Q_DISABLE_COPY(GitCommand)
Q_OBJECT
public:
explicit GitCommand(const QString &workingDirectory,
explicit GitCommand(const QString &binaryPath,
const QString &workingDirectory,
ProjectExplorer::Environment &environment);
@@ -67,8 +69,7 @@ private:
int timeout;
};
QStringList environment() const;
const QString m_binaryPath;
const QString m_workingDirectory;
const QStringList m_environment;