Split the repository into reader and writer. Writer must have a root (must be initialised), reader will fetch it on demand, but it must be in the DB.
README update
extra test