diff options
author | Conley Owens <cco3@android.com> | 2015-01-30 19:36:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-30 19:36:06 +0000 |
commit | db6f1b088425d0c5060f362e25c4028b2f2adb8c (patch) | |
tree | 18bbc19e3cfdf525905d85fd1635e69a9f6805d0 /project.py | |
parent | ee6908442102008df57b46271323d9b06d5fdfbf (diff) | |
parent | f97e8383a3b180fb5aa186f8cebc4c98d7787778 (diff) | |
download | git-repo-db6f1b088425d0c5060f362e25c4028b2f2adb8c.tar.gz |
Merge "Use depth flag when fetching"
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1822,9 +1822,7 @@ class Project(object): | |||
1822 | 1822 | ||
1823 | cmd = ['fetch'] | 1823 | cmd = ['fetch'] |
1824 | 1824 | ||
1825 | # The --depth option only affects the initial fetch; after that we'll do | 1825 | if depth: |
1826 | # full fetches of changes. | ||
1827 | if depth and initial: | ||
1828 | cmd.append('--depth=%s' % depth) | 1826 | cmd.append('--depth=%s' % depth) |
1829 | 1827 | ||
1830 | if quiet: | 1828 | if quiet: |