diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 134ab12030a503bebd3845d9b88812e13c70ed1e..94344779cda12683ca5a3dad796d917c0c7999c3 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;