summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/project.py b/project.py
index c2bedde6..0f110961 100644
--- a/project.py
+++ b/project.py
@@ -1716,11 +1716,17 @@ class Project(object):
1716 1716
1717 is_sha1 = False 1717 is_sha1 = False
1718 tag_name = None 1718 tag_name = None
1719 depth = None
1720
1721 # The depth should not be used when fetching to a mirror because
1722 # it will result in a shallow repository that cannot be cloned or
1723 # fetched from.
1724 if not self.manifest.IsMirror:
1725 if self.clone_depth:
1726 depth = self.clone_depth
1727 else:
1728 depth = self.manifest.manifestProject.config.GetString('repo.depth')
1719 1729
1720 if self.clone_depth:
1721 depth = self.clone_depth
1722 else:
1723 depth = self.manifest.manifestProject.config.GetString('repo.depth')
1724 if depth: 1730 if depth:
1725 current_branch_only = True 1731 current_branch_only = True
1726 1732