templates / branches--on commit strbuf change: be sure ->buf is never ever NULL. (b315c5c)
   1: this is just to ensure the directory exists.