Fix create_project XML-RPC and comment project_to_repository symlinks
This commit is contained in:
parent
5f71c6b56a
commit
6147ebf79e
|
@ -134,7 +134,7 @@ class Project < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def xml_rpc_create
|
||||
result = BuildServer.create_project unixname, "#{owner.uname}_personal", 'main'
|
||||
result = BuildServer.create_project unixname, "#{owner.uname}_personal", 'main', path
|
||||
if result == BuildServer::SUCCESS
|
||||
return true
|
||||
else
|
||||
|
|
|
@ -5,9 +5,9 @@ class ProjectToRepository < ActiveRecord::Base
|
|||
delegate :path, :to => :project
|
||||
|
||||
#before_save :create_link
|
||||
before_save :add_compability_link
|
||||
#before_save :add_compability_link
|
||||
#after_destroy :remove_link
|
||||
after_destroy :remove_compability_link
|
||||
#after_destroy :remove_compability_link
|
||||
|
||||
after_create lambda {
|
||||
project.xml_rpc_create
|
||||
|
|
Loading…
Reference in New Issue