From a50afa486a656c6a2de7296342ebdda878bbc0c6 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 26 Aug 2022 09:09:55 +0200 Subject: VcsCommand: Remove unused SshPasswordPrompt Change-Id: I402d619656d8339b1e81bc9ae96acf56178505d2 Reviewed-by: Orgad Shaneh --- src/plugins/mercurial/mercurialclient.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/plugins/mercurial/mercurialclient.cpp') 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; -- cgit v1.2.1