update repo to directory