Commit 84520b37 authored by Petar Perisin's avatar Petar Perisin Committed by Orgad Shaneh
Browse files

Git - fetch from all remotes in repository



Change-Id: I024e6905ad9ef246bf30b898c654ba99e73b42e9
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 2dc7b288
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment