diff options
author | Hannes Rosenögger <123haynes@gmail.com> | 2016-08-12 16:29:13 +0200 |
---|---|---|
committer | Hannes Rosenögger <123haynes@gmail.com> | 2016-08-25 14:52:14 +0200 |
commit | f16eabfc3335119015302798cb270445ddc0dc89 (patch) | |
tree | 37c45616519c782e01749cb1783fd9b1819b1db9 /app/models/repository.rb | |
parent | 7bbb523b23638c52b3c0ba43d8f3dbef8840aad6 (diff) | |
download | gitlab-ce-f16eabfc3335119015302798cb270445ddc0dc89.tar.gz |
Display project icon from default branch
This commit makes sure that the project icon is
being read from the default branch instead of
'master'
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index bdc3b9d1c1c..91bdafdac99 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1065,7 +1065,7 @@ class Repository @avatar ||= cache.fetch(:avatar) do AVATAR_FILES.find do |file| - blob_at_branch('master', file) + blob_at_branch(root_ref, file) end end end |