copy from local repository.