Added ssh clone option:

This commit is contained in:
Glen De Cauwsemaecker 2014-03-26 14:27:39 +01:00
parent 6fdcbde61a
commit 71608bf2ef
3 changed files with 16 additions and 1 deletions
scripts/windows/coco-dev-setup/batch

View file

@ -40,6 +40,7 @@
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'.
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]
path=That path already exists, are you sure you want to overwrite it?
exist=That path doesn't exist. Please try again...

View file

@ -40,6 +40,7 @@
bashp64=Git bash is normaal geinstalleerd in 'C:\Program Files (x86)\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
ssh=Wil je het git project downloaden via ssh?
[error]
path=Dat pad bestaat al, ben je zeker dat je het wil overschrijven?
exist=Dat pad bestaat niet, probeer alsjeblieft opnieuw...

View file

@ -90,6 +90,7 @@ goto:eof
goto:get_git_path
) else (
rmdir /s /q %repository_path%
goto:git_checkout
)
) else (
goto:git_checkout
@ -99,7 +100,19 @@ goto:eof
:git_checkout
call print_dashed_seperator
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:eof