12345678910111213141516171819202122232425262728 |
- :: Upload changes from inside repository using GIN CLI
- :: Assumes no submodules
- :checkerror
- err=%1
- msg=%2
- if %err% NEQ 0 (
- )
- EXIT /B
- set curdir=%~dp0
- for /f %%i in ('git -C %curdir% rev-parse --show-toplevel') do set projectdir=%%i
- cd %projectdir%
- gin sync
- CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin sync'"
- gin commit .
- CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin commit'"
- gin upload
- CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin upload'"
- :: Uncomment below to download all large files
- :: gin get-content .
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin get-content'"
- pause
|