Procházet zdrojové kódy

Merge "Repo should not fetch tags for shallow projects"

David Pursehouse před 12 roky
rodič
revize
d503352b14
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      project.py

+ 3 - 1
project.py

@@ -1661,7 +1661,9 @@ class Project(object):
 
     if not current_branch_only:
       # 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')
       else:
         cmd.append('--tags')