Make gitlab works with gitlab-shell
This commit is contained in:
parent
6b9a609044
commit
27d9ac0fe8
9 changed files with 44 additions and 71 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue