[depot_tools] fix args to pass --depth

The current code appends "--depth 1" as a single parameter.

Change-Id: I87cf34ffc45d0d9ce49453a7449b82e526989924
Recipe-Nontrivial-Roll: infra
Recipe-Nontrivial-Roll: build
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5105224
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
changes/24/5105224/4
Scott Lee 1 year ago committed by LUCI CQ
parent c90f05ebd3
commit 1714cc6e5a

@ -262,7 +262,7 @@ class GitApi(recipe_api.RecipeApi):
if depth:
assert isinstance(depth, int)
fetch_args.append('--depth %d' % depth)
fetch_args += ['--depth', depth]
fetch_step_name = 'git fetch%s' % step_suffix
if display_fetch_size:

@ -19,7 +19,8 @@
"main",
"--recurse-submodules",
"--progress",
"--depth 1"
"--depth",
"1"
],
"cwd": "[START_DIR]/src",
"env": {

Loading…
Cancel
Save