mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-05-22 15:17:29 +08:00
Merge "Use depth flag when fetching"
This commit is contained in:
commit
db6f1b0884
@ -1822,9 +1822,7 @@ class Project(object):
|
|||||||
|
|
||||||
cmd = ['fetch']
|
cmd = ['fetch']
|
||||||
|
|
||||||
# The --depth option only affects the initial fetch; after that we'll do
|
if depth:
|
||||||
# full fetches of changes.
|
|
||||||
if depth and initial:
|
|
||||||
cmd.append('--depth=%s' % depth)
|
cmd.append('--depth=%s' % depth)
|
||||||
|
|
||||||
if quiet:
|
if quiet:
|
||||||
|
Loading…
Reference in New Issue
Block a user