Discard local changes and untracked files on sync.

This commit is contained in:
Kirill Kirilenko 2023-08-04 16:01:05 +03:00
parent 9d7075b4f0
commit cf009964cf
2 changed files with 4 additions and 4 deletions

View file

@ -31,9 +31,9 @@ if not exist "webrtc" (
echo Updating WebRTC to version %WEBRTC_REVISION%... echo Updating WebRTC to version %WEBRTC_REVISION%...
cd %REPO_ROOT%\webrtc\src cd %REPO_ROOT%\webrtc\src
call gclient sync --with_branch_heads call gclient sync --with_branch_heads --reset
git.exe fetch git.exe fetch
git.exe checkout -B %WEBRTC_REVISION% branch-heads/%WEBRTC_REVISION% git.exe checkout -f -B %WEBRTC_REVISION% branch-heads/%WEBRTC_REVISION%
call gclient sync --force -D call gclient sync --force -D --reset
cd %REPO_ROOT% cd %REPO_ROOT%

View file

@ -37,5 +37,5 @@ echo "Updating WebRTC to version ${WEBRTC_REVISION}..."
cd ${REPO_ROOT}/webrtc/src cd ${REPO_ROOT}/webrtc/src
gclient sync --with_branch_heads --reset gclient sync --with_branch_heads --reset
git fetch 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 gclient sync --force -D --reset