mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-06-24 13:19:03 +08:00
Merge "Use depth flag when fetching"
This commit is contained in:
@ -1822,9 +1822,7 @@ class Project(object):
|
||||
|
||||
cmd = ['fetch']
|
||||
|
||||
# The --depth option only affects the initial fetch; after that we'll do
|
||||
# full fetches of changes.
|
||||
if depth and initial:
|
||||
if depth:
|
||||
cmd.append('--depth=%s' % depth)
|
||||
|
||||
if quiet:
|
||||
|
Reference in New Issue
Block a user