diff --git a/sync.bat b/sync.bat index 57192ac..169f049 100644 --- a/sync.bat +++ b/sync.bat @@ -31,6 +31,8 @@ if not exist "webrtc" ( echo Updating WebRTC to version %WEBRTC_REVISION%... cd %REPO_ROOT%\webrtc\src +call gclient sync --with_branch_heads +git.exe fetch git.exe checkout -B %WEBRTC_REVISION% branch-heads/%WEBRTC_REVISION% call gclient sync --force -D diff --git a/sync.sh b/sync.sh index 29e6647..4d57bb2 100755 --- a/sync.sh +++ b/sync.sh @@ -35,5 +35,7 @@ fi echo "Updating WebRTC to version ${WEBRTC_REVISION}..." cd ${REPO_ROOT}/webrtc/src +gclient sync --with_branch_heads +git fetch git checkout -B ${WEBRTC_REVISION} branch-heads/${WEBRTC_REVISION} gclient sync --force -D