init updating from a repository