templates / branches--on commit refs: split log_ref_write logic into log_ref_setup (859c301)
   1: this is just to ensure the directory exists.