diff options
Diffstat (limited to 'lorrycontroller')
-rw-r--r-- | lorrycontroller/readconf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py index c833645..8f95035 100644 --- a/lorrycontroller/readconf.py +++ b/lorrycontroller/readconf.py @@ -113,6 +113,11 @@ class ReadConfiguration(lorrycontroller.LorryControllerRoute): def update_confgit(self, confdir): logging.info('Updating CONFGIT in %s', confdir) + # First ensure that the confgit repo is using the correct + # upstream source. + url = self.app_settings['confgit-url'] + cliapp.runcmd(['git', 'remote', 'set-url', 'origin', url], cwd=confdir) + # The following sequence makes the working tree mirror # current upstream git repository as closely as possible. |