Merge pull request #1780 from monaka/pr-add-ssh-protocol-support-for-bitbucket

Add ssh protocol support for bitbucket.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-02 21:24:40 +09:00
+5 -1
View File
@@ -43,7 +43,11 @@ module MRuby
if params[:github]
params[:git] = "https://github.com/#{params[:github]}.git"
elsif params[:bitbucket]
params[:git] = "https://bitbucket.org/#{params[:bitbucket]}.git"
if params[:method] == "ssh"
params[:git] = "git@bitbucket.org:#{params[:bitbucket]}.git"
else
params[:git] = "https://bitbucket.org/#{params[:bitbucket]}.git"
end
end
if params[:core]