Backup skips repositories where HEAD pointing to a non-existent master branch
### Summary If a repository doesn't have a default branch and is not corrupt the backup task will skip it. ### Steps to reproduce 1. Head to a repository in the `git-data/repository` folder and edit `HEAD` to point to a non-existing branch 2. Attempt to back up repository ### What is the current *bug* behavior? Repositories aren't backed up. ### What is the expected *correct* behavior? Repositories should be backed up ### Relevant logs and/or screenshots GitLab Repo check: ``` Running `git fsck` notice: HEAD points to an unborn branch (master) 'config.lock' file exists? ... no No ref lock files exist ``` https://gitlab.zendesk.com/agent/tickets/84098
issue