templates / branches--on commit refs.c: make update_ref_write update a strbuf on failure (c1703d7)
   1: this is just to ensure the directory exists.