Skip to content

Commit a6b5ccc

Browse files
committed
Tell gclient sync to sync a specific revision
1 parent 0e15f03 commit a6b5ccc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/run.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,6 @@ def get_webrtc(source_dir, patch_dir, version, target,
374374

375375
if not os.path.exists(os.path.join(webrtc_source_dir, 'src')):
376376
with cd(webrtc_source_dir):
377-
os.environ['DEPOT_TOOLS_UPDATE'] = "0"
378-
cmd(['gclient'])
379377
shutil.copyfile(os.path.join(BASE_DIR, '.gclient'), '.gclient')
380378
cmd(['git', 'clone', 'https://github.com/webrtc-sdk/webrtc.git', 'src'])
381379
if target in ['android', 'android_prefixed']:
@@ -398,7 +396,7 @@ def get_webrtc(source_dir, patch_dir, version, target,
398396
cmd(['git', 'branch'])
399397
cmd(['git', 'checkout', '-f', version])
400398
cmd(['git', 'clean', '-df'])
401-
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--with_branch_heads', '--jobs=8'])
399+
cmd(['gclient', 'sync', '-D', '--force', '--reset', '--revision', version, '--with_branch_heads', '--jobs=8'])
402400
for patch in PATCHES[target]:
403401
depth, dirs = PATCH_INFO.get(patch, (1, ['.']))
404402
dir = os.path.join(src_dir, *dirs)

0 commit comments

Comments
 (0)