Apply the default remote url to Fossil as well.
FossilOrigin-Name: faaed64ae5cace45eb2ce7fff9f4c179bfbc5a80
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user