Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-06 02:26:40 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-06 02:26:40 +0400
commitcb59aade4e568e6146a966362385ac41af4dc604 (patch)
tree5b755ded0186a81c15d8da2b7b4ce865a5b73a0d /app/models/protected_branch.rb
parent74f8bc7298f112c2d414c6f71be054adce01012a (diff)
Cleaning and refactoring
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r--app/models/protected_branch.rb4
1 files changed, 1 insertions, 3 deletions
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