forked from qt-creator/qt-creator
Git: Use vcsExec in favor of plain VcsCommand
Change-Id: I9e422d3ef7749f37323edf1f85d1c65b8c60344a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user