diff --git a/sync.bat b/sync.bat index 169f049..03fa5e8 100644 --- a/sync.bat +++ b/sync.bat @@ -31,9 +31,9 @@ if not exist "webrtc" ( echo Updating WebRTC to version %WEBRTC_REVISION%... cd %REPO_ROOT%\webrtc\src -call gclient sync --with_branch_heads +call gclient sync --with_branch_heads --reset git.exe fetch -git.exe checkout -B %WEBRTC_REVISION% branch-heads/%WEBRTC_REVISION% -call gclient sync --force -D +git.exe checkout -f -B %WEBRTC_REVISION% branch-heads/%WEBRTC_REVISION% +call gclient sync --force -D --reset cd %REPO_ROOT% diff --git a/sync.sh b/sync.sh index 9a14d89..8e46091 100755 --- a/sync.sh +++ b/sync.sh @@ -37,5 +37,5 @@ echo "Updating WebRTC to version ${WEBRTC_REVISION}..." cd ${REPO_ROOT}/webrtc/src gclient sync --with_branch_heads --reset git fetch -git checkout -B ${WEBRTC_REVISION} branch-heads/${WEBRTC_REVISION} +git checkout -f -B ${WEBRTC_REVISION} branch-heads/${WEBRTC_REVISION} gclient sync --force -D --reset