templates / branches--on commit replace_object: convert struct replace_object to object_id (1731a1e)
   1: this is just to ensure the directory exists.