/
3git-clone.bat
49 lines (33 loc) · 1.11 KB
/
3git-clone.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
setlocal
set /p gitRepo=<_jugodegrunt/gitRepo.txt
set /p gitRepoRama=<_jugodegrunt/gitRepoRama.txt
set /p tienerama=<_jugodegrunt/gitRepoRama.json
if "%tienerama%"=="{"gitRepoRama":"(ninguna)"}" (
goto SINRAMA
)
if %gitRepo%==https://github.com/usuario/repositorio.git goto AVISOCONFIG
:CONRAMA
echo Esta operaci¢n clonar (bajar ) el repositorio %gitRepo% (branch: %gitRepoRama%) en la carpeta de desarrollo 'de'. La carpeta deber estar vac¡a.
echo.
set /P estaseguro=¨Quieres Continuar (S/[N])?
if /i "%estaseguro%" NEQ "S" goto END
call grunt git1-clonar
pause
goto END
:SINRAMA
echo Esta operaci¢n clonar (bajar ) el repositorio %gitRepo% (sin rama definida) en la carpeta de desarrollo 'de'. La carpeta deber estar vac¡a.
echo.
set /p estaseguro=¨Quieres Continuar (S/[N])?
if /i "%estaseguro%" NEQ "S" goto END
call grunt git1-clonarsinrama
pause
goto END
:AVISOCONFIG
echo Todav¡a no se ha seleccionado ningun repositorio desde el que clonar.
set /p DESEACONFIGURAR=¨Quieres configurar el repositorio (S/[N])?
if /i "%DESEACONFIGURAR%" NEQ "S" goto END
cls
call 2git-configurar.bat
:END
endlocal