templates / branches--on commit get_ref_dir(): use a strbuf to hold refname (72b64b4)
   1: this is just to ensure the directory exists.