• Zeger-Jan van de Weg's avatar
    Don't use rugged in Repository#refs_hash · 73e78c4e
    Zeger-Jan van de Weg authored
    The refs hash is used to determine what branches and tags have a commit
    as head in the network graph. The previous implementation depended on
    Rugged#references. The problem with this implementation was that it
    depended on rugged, but also that it iterated over all references and
    thus loading more data than needed if for example the project uses CI/CD
    environments, Pipelines, or Merge Requests.
    
    Given only refs are checked the network cares about the GraphHelper#refs
    method has no need to reject those, simplifying the method.
    
    Closes gitlab-org/gitaly#880
    73e78c4e
repository_spec.rb 71.8 KB