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;
|
||||
}
|
||||
|
||||
@@ -114,8 +114,7 @@ public:
|
||||
// triggered by file watchers).
|
||||
SilentOutput = 0x100, // Suppress user notifications about the output happening.
|
||||
NoFullySync = 0x200, // Avoid fully synchronous execution even in UI thread.
|
||||
SshPasswordPrompt = 0x400, // Disable terminal on UNIX to force graphical prompt.
|
||||
ExpectRepoChanges = 0x800, // Expect changes in repository by the command
|
||||
ExpectRepoChanges = 0x400, // Expect changes in repository by the command
|
||||
NoOutput = SuppressStdErr | SuppressFailMessage | SuppressCommandLogging
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user