forked from qt-creator/qt-creator
Vcs: Push the binary into the Jobs of VcsCommand
This is the first step to generalizing the class for wider use. Change-Id: I40ccb5bec4fdcb9d0a67388160c867799331007b Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -82,9 +82,8 @@ VcsCommand *CheckoutWizard::createCommand(Utils::FileName *checkoutDir)
|
||||
const QString workingDirectory = cwp->path();
|
||||
*checkoutDir = Utils::FileName::fromString(workingDirectory + QLatin1Char('/') + repository);
|
||||
|
||||
auto command = new VcsCommand(binary, workingDirectory,
|
||||
QProcessEnvironment::systemEnvironment());
|
||||
command->addJob(settings.addOptions(args), -1);
|
||||
auto command = new VcsCommand(workingDirectory, QProcessEnvironment::systemEnvironment());
|
||||
command->addJob(binary, settings.addOptions(args), -1);
|
||||
return command;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user