create_reference should be called on the repo