diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 14 |
1 files changed, 10 insertions, 4 deletions
| @@ -963,7 +963,8 @@ class Project(object): | |||
| 963 | quiet=False, | 963 | quiet=False, |
| 964 | is_new=None, | 964 | is_new=None, |
| 965 | current_branch_only=False, | 965 | current_branch_only=False, |
| 966 | clone_bundle=True): | 966 | clone_bundle=True, |
| 967 | no_tags=False): | ||
| 967 | """Perform only the network IO portion of the sync process. | 968 | """Perform only the network IO portion of the sync process. |
| 968 | Local working directory/branch state is not affected. | 969 | Local working directory/branch state is not affected. |
| 969 | """ | 970 | """ |
| @@ -1001,7 +1002,8 @@ class Project(object): | |||
| 1001 | current_branch_only = True | 1002 | current_branch_only = True |
| 1002 | 1003 | ||
| 1003 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, | 1004 | if not self._RemoteFetch(initial=is_new, quiet=quiet, alt_dir=alt_dir, |
| 1004 | current_branch_only=current_branch_only): | 1005 | current_branch_only=current_branch_only, |
| 1006 | no_tags=no_tags): | ||
| 1005 | return False | 1007 | return False |
| 1006 | 1008 | ||
| 1007 | if self.worktree: | 1009 | if self.worktree: |
| @@ -1551,7 +1553,8 @@ class Project(object): | |||
| 1551 | current_branch_only=False, | 1553 | current_branch_only=False, |
| 1552 | initial=False, | 1554 | initial=False, |
| 1553 | quiet=False, | 1555 | quiet=False, |
| 1554 | alt_dir=None): | 1556 | alt_dir=None, |
| 1557 | no_tags=False): | ||
| 1555 | 1558 | ||
| 1556 | is_sha1 = False | 1559 | is_sha1 = False |
| 1557 | tag_name = None | 1560 | tag_name = None |
| @@ -1644,7 +1647,10 @@ class Project(object): | |||
| 1644 | 1647 | ||
| 1645 | if not current_branch_only: | 1648 | if not current_branch_only: |
| 1646 | # Fetch whole repo | 1649 | # Fetch whole repo |
| 1647 | cmd.append('--tags') | 1650 | if no_tags: |
| 1651 | cmd.append('--no-tags') | ||
| 1652 | else: | ||
| 1653 | cmd.append('--tags') | ||
| 1648 | cmd.append((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*')) | 1654 | cmd.append((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*')) |
| 1649 | elif tag_name is not None: | 1655 | elif tag_name is not None: |
| 1650 | cmd.append('tag') | 1656 | cmd.append('tag') |
