Cleaning and refactoring
This commit is contained in:
parent
74f8bc7298
commit
cb59aade4e
12 changed files with 135 additions and 232 deletions
|
@ -7,9 +7,7 @@ class ProtectedBranch < ActiveRecord::Base
|
|||
after_destroy :update_repository
|
||||
|
||||
def update_repository
|
||||
Gitlabhq::GitHost.system.new.configure do |c|
|
||||
c.update_project(project.path, project)
|
||||
end
|
||||
Gitlabhq::GitHost.system.update_project(project.path, project)
|
||||
end
|
||||
|
||||
def commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue