diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-08-26 09:09:55 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-08-26 08:36:34 +0000 |
commit | a50afa486a656c6a2de7296342ebdda878bbc0c6 (patch) | |
tree | 787d47a0db819e8842921dada4f5d3c6e8aa18e6 /src/plugins/mercurial/mercurialclient.cpp | |
parent | aa361b886eeec570671346faa579ad3d5497ee9c (diff) | |
download | qt-creator-a50afa486a656c6a2de7296342ebdda878bbc0c6.tar.gz |
VcsCommand: Remove unused SshPasswordPrompt
Change-Id: I402d619656d8339b1e81bc9ae96acf56178505d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/mercurial/mercurialclient.cpp')
-rw-r--r-- | src/plugins/mercurial/mercurialclient.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/mercurial/mercurialclient.cpp b/src/plugins/mercurial/mercurialclient.cpp index 768e566d6a..a8ab07635d 100644 --- a/src/plugins/mercurial/mercurialclient.cpp +++ b/src/plugins/mercurial/mercurialclient.cpp @@ -118,9 +118,7 @@ bool MercurialClient::synchronousClone(const FilePath &workingDirectory, { Q_UNUSED(srcLocation) Q_UNUSED(extraOptions) - const unsigned flags = VcsCommand::SshPasswordPrompt - | VcsCommand::ShowStdOut - | VcsCommand::ShowSuccessMessage; + const unsigned flags = VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage; if (workingDirectory.exists()) { // Let's make first init @@ -164,17 +162,13 @@ bool MercurialClient::synchronousPull(const FilePath &workingDir, const QString { QStringList args; args << vcsCommandString(PullCommand) << extraOptions << srcLocation; - // Disable UNIX terminals to suppress SSH prompting - const unsigned flags = VcsCommand::SshPasswordPrompt - | VcsCommand::ShowStdOut - | VcsCommand::ShowSuccessMessage; // cause mercurial doesn`t understand LANG Environment env = Environment::systemEnvironment(); env.set("LANGUAGE", "C"); VcsCommand *command = VcsBaseClient::createVcsCommand(workingDir, env); - command->addFlags(flags); + command->addFlags(VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage); const CommandResult result = command->runCommand({vcsBinary(), args}, vcsTimeoutS()); delete command; |