Fossil Forum

teodomiro 1 month, 1 week ago

Post: commit to 2 remotes (autosync)

Hi, I'm trying to configure a repo with autosync from/to 2 local remotes.

$ fossil remote ls
Remote1 file:///dir1...
Remote2 file:///dir2...
default file:///dir1...

When I run commit --verbose, fossil pulls from both remotes before of opening the editor but only sync the changes to file:///dir1....

I've autosync enabled with fossil settings autosync all. What am I doing wrong?.

wyoung 1 month, 1 week ago

fossil sync --all

drh 1 month, 1 week ago

He says he has the autosync setting set to "all", which should make the --all option automatic. I know that setting autosync to "all" works, because I use it. I don't know what the OPs problem is. I can't debug it because I don't have a reproducible test case.

andybradford 1 month, 1 week ago

What am I doing wrong?.

I tried what you are doing and it works for me. What version of Fossil are you using?

Will you show the output of "fossil settings autosync" from the same directory (the working checkout) where you ran the "fossil remote ls" command?

teodomiro 1 month, 1 week ago

Thanks everyone for the help. I had the problem with 2 old repos, which had a single local remote. It seems that when adding the new remotes and deleting the old one, there was some issue defining the new default. I fixed the issue with this:

$ fossil remote del default
$ fossil remote Remote1
$ fossil settings autosync all

Now everything works as expected.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button