summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-04 15:24:16 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-04 15:24:16 +0200
commit896c3a0a9d4c9ccdfab275d772ae5991dd92865e (patch)
tree6c042f2b45d5df67e88ac989def84ac58d872962 /app/models/namespace.rb
parent5c6492662ef730eef7a9122f53438c32724ae91d (diff)
downloadgitlab-ce-896c3a0a9d4c9ccdfab275d772ae5991dd92865e.tar.gz
remove update_repository calls
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index ad04d0ef99b..f17d8f65183 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -27,7 +27,6 @@ class Namespace < ActiveRecord::Base
after_create :ensure_dir_exist
after_update :move_dir
- after_commit :update_gitolite, on: :update, if: :require_update_gitolite
after_destroy :rm_dir
scope :root, where('type IS NULL')
@@ -89,11 +88,6 @@ class Namespace < ActiveRecord::Base
end
end
- def update_gitolite
- @require_update_gitolite = false
- projects.each(&:update_repository)
- end
-
def rm_dir
dir_path = File.join(Gitlab.config.gitolite.repos_path, path)
FileUtils.rm_r( dir_path, force: true )