templates / branches--on commit invalidate_ref_cache(): expose this function in the refs API (8be8bde)
   1: this is just to ensure the directory exists.