Git: Use vcsExec in favor of plain VcsCommand

Change-Id: I9e422d3ef7749f37323edf1f85d1c65b8c60344a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2015-04-14 15:36:21 +02:00
parent be3e0438c6
commit ee7a47681b

View File

@@ -1484,13 +1484,9 @@ void GitClient::branchesForCommit(const QString &revision)
auto controller = qobject_cast<DiffEditorController *>(sender());
QString workingDirectory = controller->baseDirectory();
auto command = new VcsCommand(vcsBinary(), workingDirectory, processEnvironment());
command->setCookie(workingDirectory);
VcsCommand *command = vcsExec(workingDirectory, arguments, 0, false, 0, workingDirectory);
connect(command, &VcsCommand::output, controller,
&DiffEditorController::informationForCommitReceived);
enqueueJob(command, arguments);
}
bool GitClient::isRemoteCommit(const QString &workingDirectory, const QString &commit)