urbackup_backend/checkout_client.bat
2020-08-21 23:44:13 +02:00

12 lines
296 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% https://github.com/uroni/urbackup_frontend_wx client
cd client
git fetch
git checkout -b %BRANCH% origin/%BRANCH%
git checkout %BRANCH%
git reset --hard
git pull