diff options
| author | Masaki Muranaka <[email protected]> | 2014-03-02 12:07:15 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2014-03-02 12:08:09 +0900 |
| commit | b58e6b91461c244f94a259a0c843565ea0e92e26 (patch) | |
| tree | dc10430a0345b45fbd908e22b809e0eda82a5f61 | |
| parent | ba7ea507880430908735972b6d72c2bb4059b558 (diff) | |
| download | mruby-b58e6b91461c244f94a259a0c843565ea0e92e26.tar.gz mruby-b58e6b91461c244f94a259a0c843565ea0e92e26.zip | |
Add ssh protocol support for bitbucket.
| -rw-r--r-- | tasks/mruby_build_gem.rake | 6 |
1 files changed, 5 insertions, 1 deletions
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] = "[email protected]:#{params[:bitbucket]}.git" + else + params[:git] = "https://bitbucket.org/#{params[:bitbucket]}.git" + end end if params[:core] |
