fix assertion error on repos.fork.create

Fixes issue #23