raise NoRepositoryError when repository is not set
Merge pull request #14 from cordawyn/cordawyn-fixing-save-errors

raise NoRepositoryError when repository is not set
(the only failing spec is not related to this commit)