diff --git a/app/models/platform.rb b/app/models/platform.rb index b1da53c3c..4083b6166 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -50,7 +50,7 @@ class Platform < ActiveRecord::Base end def xml_rpc_create - result = BuildServer.add_platform name, build_path(unixname), [], git_path(unixname) + result = BuildServer.add_platform name, build_path(unixname), [] if result == BuildServer::SUCCESS return true else diff --git a/lib/build_server.rb b/lib/build_server.rb index 84765d429..2144fbb1e 100644 --- a/lib/build_server.rb +++ b/lib/build_server.rb @@ -22,9 +22,9 @@ class BuildServer end - def self.add_platform name, root_folder, repos = [], git_path = nil + def self.add_platform name, root_folder, repos = [] Rails.logger.info "add_platform start" - self.client.call('add_platform', name, git_path, root_folder, repos) + self.client.call('add_platform', name, root_folder, repos) Rails.logger.info "add_platform ok" end