From 84520b37e74897f7375b762a746bc46844aec3c8 Mon Sep 17 00:00:00 2001 From: Petar Perisin Date: Tue, 7 May 2013 20:02:55 +0200 Subject: [PATCH] Git - fetch from all remotes in repository Change-Id: I024e6905ad9ef246bf30b898c654ba99e73b42e9 Reviewed-by: Orgad Shaneh --- src/plugins/git/gitclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;