Branch Divergence graph message does not refer to the default branch
Summary
The Branch Divergence graph on the Branches list page always reads "x commits behind master, y commits ahead", regardless of wether the default branch is master or not.
Steps to reproduce
- Create new empty project and make an initial commit.
- Create a new branch and make a commit.
- Change the default branch of the project to the new branch.
- Go to The Repository->Branches page.
- Hover over the divergence graph of the master branch, it will read "1 commits behind master, 0 commits ahead"
Example Project
https://gitlab.com/0neblock/test-branch-divergence-project
What is the current bug behavior?
The divergent message shows the master branch, even it it is not the default branch.
What is the expected correct behavior?
The message should show the default branch.
Relevant logs and/or screenshots
Possible fixes
This file has 'master' hardcoded for the DivergenceGraph Vue component, it should instead pass the name of the default branch.
