summaryrefslogtreecommitdiff
path: root/app/models/protected_branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r--app/models/protected_branch.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb
index c54aa3ce9a2..3308caf360a 100644
--- a/app/models/protected_branch.rb
+++ b/app/models/protected_branch.rb
@@ -10,7 +10,7 @@
#
class ProtectedBranch < ActiveRecord::Base
- include GitHost
+ include Gitolited
attr_accessible :name
@@ -22,10 +22,10 @@ class ProtectedBranch < ActiveRecord::Base
after_destroy :update_repository
def update_repository
- git_host.update_repository(project)
+ gitolite.update_repository(project)
end
def commit
- project.commit(self.name)
+ project.repository.commit(self.name)
end
end