smarkets / marge-bot

A merge-bot for GitLab
BSD 3-Clause "New" or "Revised" License
700 stars 136 forks source link

Assumes default branch is 'master' #324

Closed alokpr closed 3 years ago

alokpr commented 3 years ago

When rebase fails, marge-bot attempts to checkout the default branch, which it assumes is named 'master': https://github.com/smarkets/marge-bot/blob/master/marge/job.py#L348

This fails on repositories without a 'master' branch leading to uncaught exception. I think there should be a config setting for default branch name.