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
- Head to a repository in the
git-data/repositoryfolder and editHEADto point to a non-existing branch - 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
Edited by Cindy Pallares 🦉