summaryrefslogtreecommitdiffstats
path: root/git_superproject.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_superproject.py')
-rw-r--r--git_superproject.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/git_superproject.py b/git_superproject.py
index 2516545d..031f45c9 100644
--- a/git_superproject.py
+++ b/git_superproject.py
@@ -262,10 +262,20 @@ class Superproject(object):
262 return None 262 return None
263 263
264 projects_missing_commit_ids = [] 264 projects_missing_commit_ids = []
265 superproject_remote_name = self._manifest.superproject['remote'].name
265 for project in projects: 266 for project in projects:
266 path = project.relpath 267 path = project.relpath
267 if not path: 268 if not path:
268 continue 269 continue
270 # Some manifests that pull projects from the "chromium" GoB
271 # (remote="chromium"), and have a private manifest that pulls projects
272 # from both the chromium GoB and "chrome-internal" GoB (remote="chrome").
273 # For such projects, one of the remotes will be different from
274 # superproject's remote. Until superproject, supports multiple remotes,
275 # don't update the commit ids of remotes that don't match superproject's
276 # remote.
277 if project.remote.name != superproject_remote_name:
278 continue
269 commit_id = commit_ids.get(path) 279 commit_id = commit_ids.get(path)
270 if commit_id: 280 if commit_id:
271 project.SetRevisionId(commit_id) 281 project.SetRevisionId(commit_id)