123456789101112131415161718192021222324252627282930 |
- :: 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'"
- gin remove-content
- CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin remove-content'"
- :: Uncomment below to download all large files, and comment the gin remove-content lines above to keep them.
- :: gin get-content .
- :: CALL :checkerror %ERRORLEVEL% "Error occurred during 'gin get-content'"
- pause
|