make: improve dpush

main
Dominik Madarász 2024-03-26 13:52:51 +01:00
parent fc4cb0daba
commit a1e26f4842
1 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,11 @@ if "%1"=="dpush" (
git push
) else (
git commit
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
)