This function checks out code from a Git SCM server.

def checkout(self, repo_dir, shared_dir, **kwargs):
        """This function checks out code from a Git SCM server."""
        del kwargs
        args = []
        for checkout_fn in _CHECKOUT_ARG_BUILDERS:
            args.extend(checkout_fn(shared_dir, repo_dir, self._args))
        return args