app/models/repository.rb
#
# Git repository can contains some hidden refs like:
#   /refs/notes/*
#   /refs/git-as-svn/*
#   /refs/pulls/*
# This refs by default not visible in project page and not cloned to client side.
#
# This method return true if repository contains some content visible in project page.
#
Git repository can contains some hidden refs like:
refs/notes
refs/git-as-svn
refs/pulls
This refs by default not visible in project page and not cloned to client side.

This method return true if repository contains some content visible in project page.
Git repository can contains some hidden refs like : refs / notes refs / git - as - svn refs / pulls This refs by default not visible in project page and not cloned to client side . This method return true if repository contains some content visible in project page .
def has_visible_content?
    return @has_visible_content unless @has_visible_content.nil?
    @has_visible_content = cache.fetch(:has_visible_content?) do
      branch_count > 0
    end
  end
def has_visible_content? return @has_visible_content unless @has_visible_content . nil? @has_visible_content = cache . fetch ( :has_visible_content? ) do branch_count > 0 end end
Git repository can contains some hidden refs like:
refs/notes
refs/git-as-svn
refs/pulls
This refs by default not visible in project page and not cloned to client side.
Git repository can contains some hidden refs like : refs / notes refs / git - as - svn refs / pulls This refs by default not visible in project page and not cloned to client side .