diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 16 |
1 files changed, 8 insertions, 8 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') |
| @@ -1801,7 +1801,7 @@ class Project(object): | |||
| 1801 | # Ensure that some refs exist. Otherwise, we probably aren't looking | 1801 | # Ensure that some refs exist. Otherwise, we probably aren't looking |
| 1802 | # at a real git repository and may have a bad url. | 1802 | # at a real git repository and may have a bad url. |
| 1803 | if not self.bare_ref.all: | 1803 | if not self.bare_ref.all: |
| 1804 | ok = False | 1804 | ok = False |
| 1805 | 1805 | ||
| 1806 | if alt_dir: | 1806 | if alt_dir: |
| 1807 | if old_packed != '': | 1807 | if old_packed != '': |
