Make gitlab works with gitlab-shell

This commit is contained in:
Dmitriy Zaporozhets 2013-02-04 15:07:56 +02:00
parent 6b9a609044
commit 27d9ac0fe8
9 changed files with 44 additions and 71 deletions

View file

@ -459,20 +459,6 @@ class Project < ActiveRecord::Base
namespace.try(:path) || ''
end
def update_repository
GitoliteWorker.perform_async(
:update_repository,
self.id
)
end
def destroy_repository
GitoliteWorker.perform_async(
:remove_repository,
self.path_with_namespace
)
end
def repo_exists?
@repo_exists ||= (repository && repository.branches.present?)
rescue