Fixed issue with Fossil's default remote-url with password preventing commits
FossilOrigin-Name: c16b5a89043d313fdee1e645edf9d2d3f1600d0f
This commit is contained in:
@@ -2756,10 +2756,14 @@ void MainWindow::on_actionSetDefaultRemote_triggered()
|
||||
|
||||
if(getWorkspace().setRemoteDefault(url))
|
||||
{
|
||||
// FIXME: Fossil currently ignores the password
|
||||
if(!url.isLocalFile())
|
||||
KeychainGet(this, url, *settings.GetStore());
|
||||
fossil().setRemoteUrl(url);
|
||||
|
||||
// FIXME: Fossil currently ignores the password in "remote-url"
|
||||
// which breaks commits due to a missing password when autosync is enabled
|
||||
// so only set the remote url when there is no password set
|
||||
if(url.password().isEmpty())
|
||||
fossil().setRemoteUrl(url);
|
||||
}
|
||||
|
||||
updateWorkspaceView();
|
||||
|
Reference in New Issue
Block a user