templates / branches--on commit strbuf_addbuf(): allow passing the same buf to dst and src (81d2cae)
   1: this is just to ensure the directory exists.