summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitclient.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-08-26 09:09:55 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-08-26 08:36:34 +0000
commita50afa486a656c6a2de7296342ebdda878bbc0c6 (patch)
tree787d47a0db819e8842921dada4f5d3c6e8aa18e6 /src/plugins/git/gitclient.cpp
parentaa361b886eeec570671346faa579ad3d5497ee9c (diff)
downloadqt-creator-a50afa486a656c6a2de7296342ebdda878bbc0c6.tar.gz
VcsCommand: Remove unused SshPasswordPrompt
Change-Id: I402d619656d8339b1e81bc9ae96acf56178505d2 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r--src/plugins/git/gitclient.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index 275400149b..2a27ab546e 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -2500,11 +2500,9 @@ void GitClient::continuePreviousGitCommand(const FilePath &workingDirectory,
QStringList GitClient::synchronousRepositoryBranches(const QString &repositoryURL,
const FilePath &workingDirectory) const
{
- const unsigned flags = VcsCommand::SshPasswordPrompt
- | VcsCommand::SuppressStdErr
- | VcsCommand::SuppressFailMessage;
const CommandResult result = vcsSynchronousExec(workingDirectory,
- {"ls-remote", repositoryURL, HEAD, "refs/heads/*"}, flags);
+ {"ls-remote", repositoryURL, HEAD, "refs/heads/*"},
+ VcsCommand::SuppressStdErr | VcsCommand::SuppressFailMessage);
QStringList branches;
branches << tr("<Detached HEAD>");
QString headSha;
@@ -3121,9 +3119,7 @@ bool GitClient::executeAndHandleConflicts(const FilePath &workingDirectory,
const QStringList &arguments,
const QString &abortCommand) const
{
- // Disable UNIX terminals to suppress SSH prompting.
- const unsigned flags = VcsCommand::SshPasswordPrompt
- | VcsCommand::ShowStdOut
+ const unsigned flags = VcsCommand::ShowStdOut
| VcsCommand::ExpectRepoChanges
| VcsCommand::ShowSuccessMessage;
const CommandResult result = vcsSynchronousExec(workingDirectory, arguments, flags);
@@ -3254,11 +3250,8 @@ void GitClient::addFuture(const QFuture<void> &future)
// Subversion: git svn
void GitClient::synchronousSubversionFetch(const FilePath &workingDirectory) const
{
- // Disable UNIX terminals to suppress SSH prompting.
- const unsigned flags = VcsCommand::SshPasswordPrompt
- | VcsCommand::ShowStdOut
- | VcsCommand::ShowSuccessMessage;
- vcsSynchronousExec(workingDirectory, {"svn", "fetch"}, flags);
+ vcsSynchronousExec(workingDirectory, {"svn", "fetch"},
+ VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage);
}
void GitClient::subversionLog(const FilePath &workingDirectory) const
@@ -3427,9 +3420,7 @@ VcsCommand *GitClient::vcsExecAbortable(const FilePath &workingDirectory,
if (abortCommand.isEmpty())
abortCommand = arguments.at(0);
VcsCommand *command = createCommand(workingDirectory, nullptr, VcsWindowOutputBind);
- command->addFlags(VcsCommand::SshPasswordPrompt
- | VcsCommand::ShowStdOut
- | VcsCommand::ShowSuccessMessage);
+ command->addFlags(VcsCommand::ShowStdOut | VcsCommand::ShowSuccessMessage);
// For rebase, Git might request an editor (which means the process keeps running until the
// user closes it), so run without timeout.
command->addJob({vcsBinary(), arguments}, isRebase ? 0 : vcsTimeoutS());