diff options
Diffstat (limited to 'project.py')
| -rwxr-xr-x | project.py | 14 |
1 files changed, 9 insertions, 5 deletions
| @@ -1172,10 +1172,11 @@ class Project(object): | |||
| 1172 | 1172 | ||
| 1173 | ref_spec = '%s:refs/%s/%s' % (R_HEADS + branch.name, upload_type, | 1173 | ref_spec = '%s:refs/%s/%s' % (R_HEADS + branch.name, upload_type, |
| 1174 | dest_branch) | 1174 | dest_branch) |
| 1175 | opts = [] | ||
| 1175 | if auto_topic: | 1176 | if auto_topic: |
| 1176 | ref_spec = ref_spec + '/' + branch.name | 1177 | opts += ['topic=' + branch.name] |
| 1177 | 1178 | ||
| 1178 | opts = ['r=%s' % p for p in people[0]] | 1179 | opts += ['r=%s' % p for p in people[0]] |
| 1179 | opts += ['cc=%s' % p for p in people[1]] | 1180 | opts += ['cc=%s' % p for p in people[1]] |
| 1180 | if notify: | 1181 | if notify: |
| 1181 | opts += ['notify=' + notify] | 1182 | opts += ['notify=' + notify] |
| @@ -1980,8 +1981,9 @@ class Project(object): | |||
| 1980 | 1981 | ||
| 1981 | if is_sha1 or tag_name is not None: | 1982 | if is_sha1 or tag_name is not None: |
| 1982 | if self._CheckForImmutableRevision(): | 1983 | if self._CheckForImmutableRevision(): |
| 1983 | print('Skipped fetching project %s (already have persistent ref)' | 1984 | if not quiet: |
| 1984 | % self.name) | 1985 | print('Skipped fetching project %s (already have persistent ref)' |
| 1986 | % self.name) | ||
| 1985 | return True | 1987 | return True |
| 1986 | if is_sha1 and not depth: | 1988 | if is_sha1 and not depth: |
| 1987 | # When syncing a specific commit and --depth is not set: | 1989 | # When syncing a specific commit and --depth is not set: |
| @@ -2397,6 +2399,7 @@ class Project(object): | |||
| 2397 | if m.Has(key, include_defaults=False): | 2399 | if m.Has(key, include_defaults=False): |
| 2398 | self.config.SetString(key, m.GetString(key)) | 2400 | self.config.SetString(key, m.GetString(key)) |
| 2399 | self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f') | 2401 | self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f') |
| 2402 | self.config.SetString('filter.lfs.process', 'git-lfs filter-process --skip') | ||
| 2400 | if self.manifest.IsMirror: | 2403 | if self.manifest.IsMirror: |
| 2401 | self.config.SetString('core.bare', 'true') | 2404 | self.config.SetString('core.bare', 'true') |
| 2402 | else: | 2405 | else: |
| @@ -2588,7 +2591,7 @@ class Project(object): | |||
| 2588 | cmd.append('-v') | 2591 | cmd.append('-v') |
| 2589 | cmd.append(HEAD) | 2592 | cmd.append(HEAD) |
| 2590 | if GitCommand(self, cmd).Wait() != 0: | 2593 | if GitCommand(self, cmd).Wait() != 0: |
| 2591 | raise GitError("cannot initialize work tree") | 2594 | raise GitError("cannot initialize work tree for " + self.name) |
| 2592 | 2595 | ||
| 2593 | if submodules: | 2596 | if submodules: |
| 2594 | self._SyncSubmodules(quiet=True) | 2597 | self._SyncSubmodules(quiet=True) |
| @@ -2688,6 +2691,7 @@ class Project(object): | |||
| 2688 | def DiffZ(self, name, *args): | 2691 | def DiffZ(self, name, *args): |
| 2689 | cmd = [name] | 2692 | cmd = [name] |
| 2690 | cmd.append('-z') | 2693 | cmd.append('-z') |
| 2694 | cmd.append('--ignore-submodules') | ||
| 2691 | cmd.extend(args) | 2695 | cmd.extend(args) |
| 2692 | p = GitCommand(self._project, | 2696 | p = GitCommand(self._project, |
| 2693 | cmd, | 2697 | cmd, |
