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 Sep 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading