Fixed issue with Fossil's default remote-url with password preventing commits

FossilOrigin-Name: c16b5a89043d313fdee1e645edf9d2d3f1600d0f
This commit is contained in:
Kostas
2015-07-29 09:20:59 +00:00
parent 387cbb57e8
commit 44b5faa40f
3 changed files with 13 additions and 9 deletions

View File

@@ -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();