make: improve dpush
parent
fc4cb0daba
commit
a1e26f4842
5
MAKE.bat
5
MAKE.bat
|
@ -202,6 +202,11 @@ if "%1"=="dpush" (
|
||||||
git push
|
git push
|
||||||
) else (
|
) else (
|
||||||
git commit
|
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" (
|
if not "%2"=="local" (
|
||||||
git push
|
git push
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue