summaryrefslogtreecommitdiff
path: root/app/observers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-06 18:45:39 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-06 18:45:39 +0200
commit9d14c5137a5a82ed8edd353ac7e6ed701fc6f49d (patch)
treed6fdbeed76d6387fa4474c8ae3160b9a80440511 /app/observers
parentd618a5fec361b85fafffd5cf4a53d044e82bdb5a (diff)
downloadgitlab-ce-9d14c5137a5a82ed8edd353ac7e6ed701fc6f49d.tar.gz
Project#default_branch use repo HEAD instead of DB value now
Drop default_branch field from projects table Use repository.root_ref as value for defautl_branch method Fixes issue with default_branch and HEAD getting out of sync Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/observers')
-rw-r--r--app/observers/project_observer.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb
index f301f306458..4e3deec01bf 100644
--- a/app/observers/project_observer.rb
+++ b/app/observers/project_observer.rb
@@ -30,12 +30,6 @@ class ProjectObserver < BaseObserver
def after_update(project)
project.send_move_instructions if project.namespace_id_changed?
project.rename_repo if project.path_changed?
-
- GitlabShellWorker.perform_async(
- :update_repository_head,
- project.path_with_namespace,
- project.default_branch
- ) if project.default_branch_changed?
end
def before_destroy(project)