initialize tern repository.