From 0fc1f9bf9e00f73892835b4b9ceab44b0fc2a5f3 Mon Sep 17 00:00:00 2001 From: Joe Burmeister Date: Wed, 14 Nov 2012 12:14:59 +0000 Subject: Fix so lorry files don't require source-HEAD if they use the default. --- lorrycontroller/confparser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lorrycontroller/confparser.py b/lorrycontroller/confparser.py index c6acf29..0c7fdb7 100644 --- a/lorrycontroller/confparser.py +++ b/lorrycontroller/confparser.py @@ -140,6 +140,8 @@ class LorryControllerConfig(object): if self.lorries.get(fullname, None) is not None: self._give_up("Lorry repeated: %s" % fullname) content['controller-uuid'] = entry['uuid'] + if not content.has_key('source-HEAD'): + content['source-HEAD'] = 'refs/heads/master' my_lorry_names.add(fullname) self.lorries[fullname] = content except Exception, e: -- cgit v1.2.1