From b58e6b91461c244f94a259a0c843565ea0e92e26 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sun, 2 Mar 2014 12:07:15 +0900 Subject: Add ssh protocol support for bitbucket. --- tasks/mruby_build_gem.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tasks') diff --git a/tasks/mruby_build_gem.rake b/tasks/mruby_build_gem.rake index c9bf794e3..5e4566f8d 100644 --- a/tasks/mruby_build_gem.rake +++ b/tasks/mruby_build_gem.rake @@ -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] -- cgit v1.2.3