BUGFIX: when committing a repository, prepare it on demand