nix-sync does not migrate remotes

1f731a1
Opened by Benedikt Peetz <benedikt.peetz@b-peetz.de> at 2024-06-28 18:11:44

How to reproduce

  1. Set up a nix-sync services with a given remote (say: git.nerdcult.net).
  2. Now change said remote to something else (say: codeberg.org).

Expected outcome

nix-sync now watches the new remote for changes

Actual outcome

nix-sync never updates the underlying git remotes and thus still watches on git.nerdcult.net. It should probably have a check in the PreExec part of the systemd-unit that prevents that.