Fossil Forum
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?.
fossil sync --all
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.
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?
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.