phase2: honour branch references in feeds.conf
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:36:40 +0000 (15:36 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Nov 2016 14:36:40 +0000 (15:36 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase2/master.cfg

index d59852117ec2788c30580248b978129a003386dd..ad84ab202fd185688a898c874fa959a31119f896 100644 (file)
@@ -120,7 +120,9 @@ with open(home_dir+'/source.git/feeds.conf.default', 'r') as f:
                parts = line.strip().split()
                if parts[0] == "src-git":
                        feeds.append(parts)
-                       c['change_source'].append(GitPoller(parts[2], workdir='%s/%s.git' %(os.getcwd(), parts[1]), branch='master', pollinterval=300))
+                       url = parts[2].strip().split(';')
+                       branch = url[1] if len(url) > 1 else 'master'
+                       c['change_source'].append(GitPoller(url[0], branch=branch, workdir='%s/%s.git' %(os.getcwd(), parts[1]), branch='master', pollinterval=300))
 
 
 ####### SCHEDULERS