Implementation of repository checkout.