Method: Repository#avatar

Defined in:
app/models/repository.rb

#avatarObject



675
676
677
678
679
680
681
682
# File 'app/models/repository.rb', line 675

def avatar
  # n+1: https://gitlab.com/gitlab-org/gitlab-foss/issues/38327
  Gitlab::GitalyClient.allow_n_plus_1_calls do
    if tree = file_on_head(:avatar)
      tree.path
    end
  end
end