From cb59aade4e568e6146a966362385ac41af4dc604 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 6 Mar 2012 00:26:40 +0200 Subject: Cleaning and refactoring --- app/models/protected_branch.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/models/protected_branch.rb') diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb index 9c2d391d0c1..36e65633f58 100644 --- a/app/models/protected_branch.rb +++ b/app/models/protected_branch.rb @@ -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 -- cgit v1.2.1