templates / branches--on commit refs.c: allow listing and deleting badly named refs (d0f810f)
   1: this is just to ensure the directory exists.