Commit b05f4a56 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix renaming: is_default_branch? -> default_branch?

parent b6b90f06
......@@ -53,7 +53,7 @@ class GitPushService < BaseService
update_gitattributes if default_branch?
end
if current_application_settings.elasticsearch_indexing? && is_default_branch?
if current_application_settings.elasticsearch_indexing? && default_branch?
ElasticCommitIndexerWorker.perform_async(@project.id, params[:oldrev], params[:newrev])
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment