forked from qt-creator/qt-creator
VcsCommand: Remove unused SshPasswordPrompt
Change-Id: I402d619656d8339b1e81bc9ae96acf56178505d2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -329,10 +329,7 @@ bool VcsBaseClient::synchronousPull(const FilePath &workingDir,
|
||||
{
|
||||
QStringList args;
|
||||
args << vcsCommandString(PullCommand) << extraOptions << srcLocation;
|
||||
// Disable UNIX terminals to suppress SSH prompting
|
||||
const unsigned flags = VcsCommand::SshPasswordPrompt
|
||||
| VcsCommand::ShowStdOut
|
||||
| VcsCommand::ShowSuccessMessage;
|
||||
const unsigned flags = VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage;
|
||||
const bool ok = vcsSynchronousExec(workingDir, args, flags).result()
|
||||
== ProcessResult::FinishedWithSuccess;
|
||||
if (ok)
|
||||
@@ -346,10 +343,7 @@ bool VcsBaseClient::synchronousPush(const FilePath &workingDir,
|
||||
{
|
||||
QStringList args;
|
||||
args << vcsCommandString(PushCommand) << extraOptions << dstLocation;
|
||||
// Disable UNIX terminals to suppress SSH prompting
|
||||
const unsigned flags = VcsCommand::SshPasswordPrompt
|
||||
| VcsCommand::ShowStdOut
|
||||
| VcsCommand::ShowSuccessMessage;
|
||||
const unsigned flags = VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage;
|
||||
return vcsSynchronousExec(workingDir, args, flags).result()
|
||||
== ProcessResult::FinishedWithSuccess;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user