Skip to content

Ignore remote/symbolic refs when creating repository's refs_hash

Stan Hu requested to merge stanhu/gitlab_git:fix-repo-refs-hash into master

When constructing the mapping of SHA IDs to ref names, the code tries to gather all the ref names in the repository but fails if the reference symbolically links one ref to another (e.g. refs/remotes/origin/HEAD -> refs/remotes/origin/master). Skip over these references since they don't have a valid OID to follow.

Closes gitlab-org/gitlab-ce#745

Merge request reports