templates / branches--on commit update-ref.c: extract a new function, parse_refname() (ed410e6)
   1: this is just to ensure the directory exists.