Replace "default_branch || 'master'" with a method
Description
I noticed that in a couple places we have duplicated code like:
project.default_branch || 'master'
Proposal
Introduce Project#default_branch_with_fallback (or any better name you come up with).
Edited by 🤖 GitLab Bot 🤖