summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-05-08 18:40:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-05-08 18:40:57 +0000
commitd503352b14b45f80c0fb1f6f49637ad0fe732112 (patch)
tree0045e8aded2f13a6caf169b77db63e2bf5441835
parentb5267f9ad2d0d7872610c8989f11471187fd92d2 (diff)
parent2f992cba3238ff9a849c02fbf9a423e234deab16 (diff)
downloadgit-repo-d503352b14b45f80c0fb1f6f49637ad0fe732112.tar.gz
Merge "Repo should not fetch tags for shallow projects"
-rw-r--r--project.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/project.py b/project.py
index feac5c01..3ff306f9 100644
--- a/project.py
+++ b/project.py
@@ -1661,7 +1661,9 @@ class Project(object):
1661 1661
1662 if not current_branch_only: 1662 if not current_branch_only:
1663 # Fetch whole repo 1663 # Fetch whole repo
1664 if no_tags: 1664 # If using depth then we should not get all the tags since they may
1665 # be outside of the depth.
1666 if no_tags or depth:
1665 cmd.append('--no-tags') 1667 cmd.append('--no-tags')
1666 else: 1668 else:
1667 cmd.append('--tags') 1669 cmd.append('--tags')