Fix the output of repo list to be 'repo, tag, ref' 81/59281/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 28 Jun 2018 23:05:41 +0000 (16:05 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 28 Jun 2018 23:05:41 +0000 (16:05 -0700)
This was changed in a previous commit and causes calls to 'git branch'
during the verification job to fail.

Change-Id: I71c248abecf030658371b810d403e1f460933946
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
releases/scripts/repos.py

index 139347a..47ce42d 100644 (file)
@@ -85,7 +85,7 @@ def list_repos(project, args):
         elif args.release and item['version'] == args.release:
             repos.add(Repo(repo, ref))
         elif not args.release:
-            repos.add(Repo(repo, ref, item['version']))
+            repos.add(Repo(repo, item['version'], ref))
     for repo in repos:
         print(repo)