diff --git a/project.py b/project.py index 428cab51..5a478b41 100755 --- a/project.py +++ b/project.py @@ -2201,6 +2201,8 @@ class Project(object): if not current_branch_only: # Fetch whole repo spec.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*'))) + if not (no_tags or depth): + spec.append(str((u'+refs/tags/*:') + remote.ToLocal('refs/tags/*'))) elif tag_name is not None: spec.append('tag') spec.append(tag_name)