diff --git a/repo_resource/common.py b/repo_resource/common.py index bf895e1..e23c6ef 100644 --- a/repo_resource/common.py +++ b/repo_resource/common.py @@ -460,8 +460,10 @@ def update_manifest(self, jobs): for p in manifest.findall('project'): project = p.get('name') - projectBranch = p.get('revision') or defaultBranch projectRemote = p.get('remote') or defaultRemote + projectBranch = p.get('revision') \ + or self.__get_remote_revision(projectRemote) \ + or defaultBranch projectRemoteUrl = self.__get_remote_url(projectRemote) projects.append((projectRemote, projectRemoteUrl, project, projectBranch)) @@ -472,8 +474,10 @@ def update_manifest(self, jobs): # Update revisions for p in manifest.findall('project'): project = p.get('name') - projectBranch = p.get('revision') or defaultBranch projectRemote = p.get('remote') or defaultRemote + projectBranch = p.get('revision') \ + or self.__get_remote_revision(projectRemote) \ + or defaultBranch # find revision of the project in revisionList for url, branch, rev in revisionList: if (