templates / branches--on commit get_short_oid: sort ambiguous objects by type, then SHA-1 (5cc044e)
   1: this is just to ensure the directory exists.