Added ssh clone option:
This commit is contained in:
parent
6fdcbde61a
commit
71608bf2ef
3 changed files with 16 additions and 1 deletions
scripts/windows/coco-dev-setup/batch
|
@ -40,6 +40,7 @@
|
||||||
bashp64=Git bash is by default installed at 'C:\Program Files (x86)\Git'.
|
bashp64=Git bash is by default installed at 'C:\Program Files (x86)\Git'.
|
||||||
bashp32=Git bash is by default installed at 'C:\Program Files\Git'.
|
bashp32=Git bash is by default installed at 'C:\Program Files\Git'.
|
||||||
bashq=Please enter the full path where git bash is installed or just press enter if it's in the default location
|
bashq=Please enter the full path where git bash is installed or just press enter if it's in the default location
|
||||||
|
ssh=Do you want to checkout the repository via ssh?
|
||||||
[error]
|
[error]
|
||||||
path=That path already exists, are you sure you want to overwrite it?
|
path=That path already exists, are you sure you want to overwrite it?
|
||||||
exist=That path doesn't exist. Please try again...
|
exist=That path doesn't exist. Please try again...
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
bashp64=Git bash is normaal geinstalleerd in 'C:\Program Files (x86)\Git'.
|
bashp64=Git bash is normaal geinstalleerd in 'C:\Program Files (x86)\Git'.
|
||||||
bashp32=Git bash is normaal geinstalleerd in 'C:\Program Files\Git'.
|
bashp32=Git bash is normaal geinstalleerd in 'C:\Program Files\Git'.
|
||||||
bashq=Geef alsjeblieft het volledige pad op van Git Bash of druk gewoon op enter indien je het pad niet gewijzigd heeft
|
bashq=Geef alsjeblieft het volledige pad op van Git Bash of druk gewoon op enter indien je het pad niet gewijzigd heeft
|
||||||
|
ssh=Wil je het git project downloaden via ssh?
|
||||||
[error]
|
[error]
|
||||||
path=Dat pad bestaat al, ben je zeker dat je het wil overschrijven?
|
path=Dat pad bestaat al, ben je zeker dat je het wil overschrijven?
|
||||||
exist=Dat pad bestaat niet, probeer alsjeblieft opnieuw...
|
exist=Dat pad bestaat niet, probeer alsjeblieft opnieuw...
|
||||||
|
|
|
@ -90,6 +90,7 @@ goto:eof
|
||||||
goto:get_git_path
|
goto:get_git_path
|
||||||
) else (
|
) else (
|
||||||
rmdir /s /q %repository_path%
|
rmdir /s /q %repository_path%
|
||||||
|
goto:git_checkout
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
goto:git_checkout
|
goto:git_checkout
|
||||||
|
@ -99,7 +100,19 @@ goto:eof
|
||||||
:git_checkout
|
:git_checkout
|
||||||
call print_dashed_seperator
|
call print_dashed_seperator
|
||||||
set "git_app_path=%git_bash_path%\bin\git.exe"
|
set "git_app_path=%git_bash_path%\bin\git.exe"
|
||||||
"%git_app_path%" clone https://github.com/codecombat/codecombat.git "%repository_path%"
|
|
||||||
|
call get_local_text github-process-ssh
|
||||||
|
call ask_question "!github_process_ssh!"
|
||||||
|
|
||||||
|
if "%result%"=="true" (
|
||||||
|
call get_config github_ssh
|
||||||
|
"%git_app_path%" clone "!github_ssh!" "%repository_path%"
|
||||||
|
echo no
|
||||||
|
) else (
|
||||||
|
call get_config github_url
|
||||||
|
"%git_app_path%" clone "!github_url!" "%repository_path%"
|
||||||
|
)
|
||||||
|
|
||||||
goto:exit_git_setup
|
goto:exit_git_setup
|
||||||
goto:eof
|
goto:eof
|
||||||
|
|
||||||
|
|
Reference in a new issue