urbackup_backend/checkout_client.bat

12 lines
307 B
Batchfile

for /f "delims=" %%i in ('git rev-parse --abbrev-ref HEAD') do set BRANCH=%%i
if not exist client git clone -b %BRANCH% http://buildserver.urbackup.org/git/urbackup_frontend_wx client
cd client
git fetch
git checkout -b %BRANCH% origin/%BRANCH%
git checkout %BRANCH%
git reset --hard
git pull