summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lorrycontroller/confparser.py2
1 files changed, 2 insertions, 0 deletions
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: