summaryrefslogtreecommitdiff
path: root/lorrycontroller/readconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/readconf.py')
-rw-r--r--lorrycontroller/readconf.py5
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.