Dominik Madarász 2024-08-31 09:14:26 +02:00
parent c6dcb9029e
commit 5eb53e7fa4
1 changed files with 9 additions and 9 deletions

View File

@ -198,19 +198,19 @@ if "%1"=="dstat" (
if "%1"=="dpush" ( if "%1"=="dpush" (
pushd depot pushd depot
git add . git add . > NUL 2>&1
if "%2"=="auto" ( if "%2"=="auto" (
git commit -m "asset update" git commit -m "asset update" > NUL 2>&1
git push git push > NUL 2>&1
) else ( ) else (
git commit git commit > NUL 2>&1
git diff --quiet --exit-code --cached git diff --quiet --exit-code --cached
if !ERRORLEVEL! neq 0 ( if !ERRORLEVEL! neq 0 (
echo Commit was cancelled or failed echo Commit was cancelled or failed
exit /b %ERRORLEVEL% exit /b %ERRORLEVEL%
) )
if not "%2"=="local" ( if not "%2"=="local" (
git push git push > NUL 2>&1
) )
) )
popd popd
@ -263,14 +263,14 @@ if "%1"=="push" (
@REM sync depot @REM sync depot
git stash > NUL 2>&1 git stash > NUL 2>&1
git add depot git add depot > NUL 2>&1
git commit -m "sync depot" git commit -m "sync depot" > NUL 2>&1
git stash pop > NUL 2>&1 git stash pop > NUL 2>&1
@REM sync website @REM sync website
git stash > NUL 2>&1 git stash > NUL 2>&1
git add website git add website > NUL 2>&1
git commit -m "sync website" git commit -m "sync website" > NUL 2>&1
git stash pop > NUL 2>&1 git stash pop > NUL 2>&1
if not "%2"=="local" ( if not "%2"=="local" (