Apply the default remote url to Fossil as well.

FossilOrigin-Name: faaed64ae5cace45eb2ce7fff9f4c179bfbc5a80
This commit is contained in:
kostas
2015-07-23 19:01:06 +00:00
parent e2307d673a
commit d23e35edd7
4 changed files with 17 additions and 9 deletions

View File

@@ -405,6 +405,7 @@ bool Fossil::setRemoteUrl(const QUrl& url)
if(url.isEmpty())
u = "off";
// FIXME: Fossil ignores any password passed via the URL
// Run as silent to avoid displaying credentials in the log
bool ok = runFossil(QStringList() << "remote-url" << u, 0, RUNFLAGS_SILENT_INPUT);

View File

@@ -2749,7 +2749,14 @@ void MainWindow::on_actionSetDefaultRemote_triggered()
QUrl url(remotes.first());
getWorkspace().setRemoteDefault(url);
if(getWorkspace().setRemoteDefault(url))
{
// FIXME: Fossil currently ignores the password
if(!url.isLocalFile())
KeychainGet(this, url, *settings.GetStore());
fossil().setRemoteUrl(url);
}
updateWorkspaceView();
}