Fixed: post-receive, project remove, tests
This commit is contained in:
parent
39e37677f2
commit
70e3bffd95
9 changed files with 43 additions and 47 deletions
|
@ -15,11 +15,10 @@ class ProjectObserver < ActiveRecord::Observer
|
|||
def after_destroy(project)
|
||||
GitoliteWorker.perform_async(
|
||||
:remove_repository,
|
||||
self.path_with_namespace
|
||||
project.path_with_namespace
|
||||
)
|
||||
|
||||
project.satellite.destroy
|
||||
project.destroy_repository
|
||||
|
||||
log_info("Project \"#{project.name}\" was removed")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue