summaryrefslogtreecommitdiff
path: root/app/models/repository.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-09 12:09:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-09 12:09:42 +0000
commit1361891b0a87187364d1586395df176a8984e914 (patch)
tree4f47ddf2cd0d06cd0eb98a7bf1b7001504e6416b /app/models/repository.rb
parent109562e64e1e1c51fe32a7443df86ee63b856115 (diff)
downloadgitlab-ce-1361891b0a87187364d1586395df176a8984e914.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index d6b973d9e48..93f22dbe122 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -618,7 +618,7 @@ class Repository
end
def readme_path
- readme&.path
+ head_tree&.readme_path
end
cache_method :readme_path