Empty repo - empty branches list

If repository is empty and has no commits, branch list is empty. It causes errors on config step