diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1763,15 +1763,15 @@ class Project(object): | |||
1763 | cmd.append('--update-head-ok') | 1763 | cmd.append('--update-head-ok') |
1764 | cmd.append(name) | 1764 | cmd.append(name) |
1765 | 1765 | ||
1766 | # If using depth then we should not get all the tags since they may | ||
1767 | # be outside of the depth. | ||
1768 | if no_tags or depth: | ||
1769 | cmd.append('--no-tags') | ||
1770 | else: | ||
1771 | cmd.append('--tags') | ||
1772 | |||
1766 | if not current_branch_only: | 1773 | if not current_branch_only: |
1767 | # Fetch whole repo | 1774 | # Fetch whole repo |
1768 | # If using depth then we should not get all the tags since they may | ||
1769 | # be outside of the depth. | ||
1770 | if no_tags or depth: | ||
1771 | cmd.append('--no-tags') | ||
1772 | else: | ||
1773 | cmd.append('--tags') | ||
1774 | |||
1775 | cmd.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*'))) | 1775 | cmd.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*'))) |
1776 | elif tag_name is not None: | 1776 | elif tag_name is not None: |
1777 | cmd.append('tag') | 1777 | cmd.append('tag') |