35 lines
802 B
Batchfile
35 lines
802 B
Batchfile
REM Script di replica rami git
|
|
ECHO off
|
|
REM l'argomento è il replication level:
|
|
REM 0 = locale (current + dev)
|
|
REM 1 = (0) + locale (master) + remoto (current + dev)
|
|
REM 2 = (1) + locale (beta) + remoto (master + beta)
|
|
REM 3 = (2) + locale (stable) + remoto (stable)
|
|
|
|
set baseBranch=%1
|
|
set pushRemote=%2
|
|
|
|
git push . %baseBranch%:develop
|
|
|
|
REM Faccio push condizionali
|
|
if %pushRemote% GTR 0
|
|
(
|
|
git push . %baseBranch%:master
|
|
git push gitlab.steamware %baseBranch%:%baseBranch%
|
|
git push gitlab.steamware %baseBranch%:develop
|
|
)
|
|
|
|
if %pushRemote% GTR 1
|
|
(
|
|
git push . %baseBranch%:beta
|
|
git push gitlab.steamware %baseBranch%:master
|
|
git push gitlab.steamware %baseBranch%:beta
|
|
)
|
|
|
|
if %pushRemote% GTR 2
|
|
(
|
|
git push . %baseBranch%:stable
|
|
git push gitlab.steamware %baseBranch%:stable
|
|
)
|
|
|
|
ECHO on |