From b95ced39d1cfddd01ff7b98cd995255d78106be2 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 9 Oct 2020 09:45:23 +0200 Subject: [PATCH] update gitspread con nuova conf x livelli --- gitSpread.bat | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/gitSpread.bat b/gitSpread.bat index 6ec61cb6..15fb39a3 100644 --- a/gitSpread.bat +++ b/gitSpread.bat @@ -1,4 +1,9 @@ REM Script di replica su altri rami di un branch git +REM l'argomento รจ il replication level: +REM 0 = solo locale +REM 1 = locale + ramo current remoto +REM 2 = locale + current + develop/master remoto +REM 3 = locale + full remoto ECHO off set baseBranch=%1 @@ -11,14 +16,14 @@ git push . %baseBranch%:IOB/MTC git push . %baseBranch%:IobMan git push . %baseBranch%:master -REM Faccio SEMPRE push remoto di branch di partenza -git push gitlab.steamware %baseBranch%:%baseBranch% +REM Faccio push remoto condizionale +if %pushRemote% GTR 0 ( git push gitlab.steamware %baseBranch%:%baseBranch% ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:develop ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:IOB-NET ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:IOB/Euromap63 ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:IOB/MTC ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:IobMan ) -if "%pushRemote%" == "y" ( git push gitlab.steamware %baseBranch%:master ) +if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:develop ) +if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:IOB-NET ) +if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:IOB/Euromap63 ) +if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:IOB/MTC ) +if %pushRemote% GTR 2 ( git push gitlab.steamware %baseBranch%:IobMan ) +if %pushRemote% GTR 1 ( git push gitlab.steamware %baseBranch%:master ) ECHO on \ No newline at end of file