diff options
author | Conley Owens <cco3@android.com> | 2015-02-03 18:06:16 -0800 |
---|---|---|
committer | Conley Owens <cco3@android.com> | 2015-02-10 14:44:05 -0800 |
commit | e4978cfbe32ce3c01b894f768a11c4fb56645e76 (patch) | |
tree | f68298671e5d6d79f4b435f20a6fb97edb5b435b | |
parent | 126e298214df0ce364b9dae0aec12b7b02f627ce (diff) | |
download | git-repo-e4978cfbe32ce3c01b894f768a11c4fb56645e76.tar.gz |
Ensure the repo project is never fetched with partial depthv1.12.18
If the repo project is synced with partial depth, then the tags
won't be fetched and users will be told the newest sha1 in the
stable branch isn't signed.
Change-Id: I107df97b4836b928c76aa33a700fa35d1705ae09
-rw-r--r-- | project.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1749,6 +1749,9 @@ class Project(object): | |||
1749 | depth = self.clone_depth | 1749 | depth = self.clone_depth |
1750 | else: | 1750 | else: |
1751 | depth = self.manifest.manifestProject.config.GetString('repo.depth') | 1751 | depth = self.manifest.manifestProject.config.GetString('repo.depth') |
1752 | # The repo project should never be synced with partial depth | ||
1753 | if self.relpath == '.repo/repo': | ||
1754 | depth = None | ||
1752 | 1755 | ||
1753 | if depth: | 1756 | if depth: |
1754 | current_branch_only = True | 1757 | current_branch_only = True |