mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Discard local changes and untracked files on sync.
This commit is contained in:
parent
9d7075b4f0
commit
cf009964cf
2 changed files with 4 additions and 4 deletions
6
sync.bat
6
sync.bat
|
|
@ -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%
|
||||||
|
|
|
||||||
2
sync.sh
2
sync.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue