Skip to content

Repository compare branches feature not showing available branches to select (Compare Git Revisions)

Summary

A customer reported that when a user goes to Repository > Compare on a Project the user is unable to select target branches to compare. I tried with a couple of personal repositories and replicated the issue.

Steps to reproduce

  • Open a project
  • Create a branch (not necessary but to illustrate what you should see on Compare)
  • Go to Repository > Compare

Example Project

https://gitlab.com/gitlab-gold/mmora-gold-subgroup/pages-gatsby-jekyll/-/compare?from=master&to=testbranch-001

What is the current bug behavior?

Selection field keep looping not showing any branches

What is the expected correct behavior?

Ability to select and compare between branches

Relevant logs and/or screenshots

image This is a screenshot of my web console when refreshing the page

Output of checks

This bug happens on GitLab.com

Edited by Mario Mora