Use default branch instead of master for in-repo project avatar
Description
When no project avatar is set in the project settings, the project gets a default avatar (a big capital letter). However there is a somewhat cover feature (not part of the documentation) that allows GitLab to look for a file called logo.png
in the root of the master
branch, and use that as a project avatar instead.
Not every project used master
as their default branch. Projects like that may need to make a branch called 'master' just to be able to use this feature. Which is silly.
Proposal
In stead hard coded using master
my proposal is to use de project's default branch instead. This is by default 'master', so for projects that do have a master
branch, their existing in-repo avatar will still be working.