templates / branches--on commit replace-object: allow prepare_replace_object to handle arbitrary repositories (5982da9)
   1: this is just to ensure the directory exists.