Add a head ref in the commitencoding bare repo so that the refs folder exists on clone