diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 134ab12030a..94344779cda 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -2659,8 +2659,8 @@ void GitClient::revert(const QStringList &files, bool revertStaging) bool GitClient::synchronousFetch(const QString &workingDirectory, const QString &remote) { QStringList arguments(QLatin1String("fetch")); - if (!remote.isEmpty()) - arguments << remote; + arguments << (remote.isEmpty() ? QLatin1String("--all") : remote); + // Disable UNIX terminals to suppress SSH prompting. const unsigned flags = VcsBase::VcsBasePlugin::SshPasswordPrompt|VcsBase::VcsBasePlugin::ShowStdOutInLogWindow |VcsBase::VcsBasePlugin::ShowSuccessMessage;