Skip to content

If lookup returned Rugged::Tag::Annotation, get the Rugged:Commit in get_tree_entries_from_rugged

SCornelissen requested to merge (removed):feature/fix-for-208671 into master

Fix for issue #208671 (closed). The current code will assume that repository.lookup will always return a Rugged::Commit-object. The lookup function will also return a Rugged::Tag::Annotation object. Currently the tag-view is broken in the Gitlab UI because of this unexpected behavior. With this fix if the repository.lookup returned Rugged::Tag::Annotation, it will get the target from it (which contains a Rugged::Commit).

Merge request reports