templates / branches--on commit files_log_ref_write: new function (5f3c3a4)
   1: this is just to ensure the directory exists.