Merge "Repo should not fetch tags for shallow projects"

This commit is contained in:
David Pursehouse 2013-05-08 18:40:57 +00:00 committed by Gerrit Code Review
commit d503352b14

View File

@ -1661,7 +1661,9 @@ class Project(object):
if not current_branch_only: if not current_branch_only:
# Fetch whole repo # Fetch whole repo
if no_tags: # If using depth then we should not get all the tags since they may
# be outside of the depth.
if no_tags or depth:
cmd.append('--no-tags') cmd.append('--no-tags')
else: else:
cmd.append('--tags') cmd.append('--tags')