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