summaryrefslogtreecommitdiffstats
path: root/git_superproject.py
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2021-06-28 19:21:38 -0700
committerRaman Tenneti <rtenneti@google.com>2021-06-29 16:46:07 +0000
commit1da6f30579ca6aa698becc0daaf71eaa86237fc8 (patch)
tree52a4e505a858b4bb41d6a23aec6859b4fd58f17f /git_superproject.py
parent784e16f3aa941ca3564d823cc686017a161621a1 (diff)
downloadgit-repo-1da6f30579ca6aa698becc0daaf71eaa86237fc8.tar.gz
superproject - don't update the commit ids of projects that have revisionId.
Pinned manifests and release manifest have revisionId set for all projects. For such projects don't update the commit ids. Tested the code with the following commands. $ ./run_tests -v $ repo_dev sync --use-superproject -j8 $ repo_dev sync -n -c -j32 -m $(pwd)/manifest_7482982.xml Bug: [google internal] b/191995372 Change-Id: I4681135b1d15f4a63527b6f0356d76ec842485d6 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/310582 Reviewed-by: Xin Li <delphij@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Raman Tenneti <rtenneti@google.com>
Diffstat (limited to 'git_superproject.py')
-rw-r--r--git_superproject.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/git_superproject.py b/git_superproject.py
index 8f1e04d6..0c477060 100644
--- a/git_superproject.py
+++ b/git_superproject.py
@@ -298,6 +298,9 @@ class Superproject(object):
298 path = project.relpath 298 path = project.relpath
299 if not path: 299 if not path:
300 return True 300 return True
301 # Skip the project with revisionId.
302 if project.revisionId:
303 return True
301 # Skip the project if it comes from the local manifest. 304 # Skip the project if it comes from the local manifest.
302 return any(s.startswith(LOCAL_MANIFEST_GROUP_PREFIX) for s in project.groups) 305 return any(s.startswith(LOCAL_MANIFEST_GROUP_PREFIX) for s in project.groups)
303 306