Updating Confgit Url does not update Config Checkout
When updating the confgit-url config variable, the checkout folder used does not update the upstream URL.
This causes issues when updating access tokens on expiry, as the old token is held in the .git/config file of the confgit checkout.
Process of reproducing:
- Create valid config for lorry2 pointing to a valid confgit repo
- Run lorry2 so that it pulls the confgit repo
- Revoke token used for confgit
- Create new token for confgit
- Modify lorry2 config to use new token
- Restart lorry2
- ---> Lorry2 will fail to restart due to confgit being unreadable
Note this was done in a docker compose setup, with an external volume for storing the confgit repo.