diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -1370,6 +1370,13 @@ class Project(object): | |||
| 1370 | ref_dir = None | 1370 | ref_dir = None |
| 1371 | 1371 | ||
| 1372 | cmd = ['fetch'] | 1372 | cmd = ['fetch'] |
| 1373 | |||
| 1374 | # The --depth option only affects the initial fetch; after that we'll do | ||
| 1375 | # full fetches of changes. | ||
| 1376 | depth = self.manifest.manifestProject.config.GetString('repo.depth') | ||
| 1377 | if depth and initial: | ||
| 1378 | cmd.append('--depth=%s' % depth) | ||
| 1379 | |||
| 1373 | if quiet: | 1380 | if quiet: |
| 1374 | cmd.append('--quiet') | 1381 | cmd.append('--quiet') |
| 1375 | if not self.worktree: | 1382 | if not self.worktree: |
