I'm wondering what's the purpose of HEAD in bare repository? Is it just used when repository is cloned to know which branch to checkout in cloned repository?
Please note, this question is not about what is HEAD, but given its functions I'm wondering why it's needed inside bare repository.