templates / branches--on commit refs: convert dwim_ref and expand_ref to struct object_id (cca5fa6)
   1: this is just to ensure the directory exists.