diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1683,11 +1683,17 @@ class Project(object): | |||
1683 | 1683 | ||
1684 | is_sha1 = False | 1684 | is_sha1 = False |
1685 | tag_name = None | 1685 | tag_name = None |
1686 | depth = None | ||
1687 | |||
1688 | # The depth should not be used when fetching to a mirror because | ||
1689 | # it will result in a shallow repository that cannot be cloned or | ||
1690 | # fetched from. | ||
1691 | if not self.manifest.IsMirror: | ||
1692 | if self.clone_depth: | ||
1693 | depth = self.clone_depth | ||
1694 | else: | ||
1695 | depth = self.manifest.manifestProject.config.GetString('repo.depth') | ||
1686 | 1696 | ||
1687 | if self.clone_depth: | ||
1688 | depth = self.clone_depth | ||
1689 | else: | ||
1690 | depth = self.manifest.manifestProject.config.GetString('repo.depth') | ||
1691 | if depth: | 1697 | if depth: |
1692 | current_branch_only = True | 1698 | current_branch_only = True |
1693 | 1699 | ||