    public static function cloneRepository($path, $url, array $args = array(), array $options = array())
    {
        $process = static::getProcess('clone', array_merge(array('-q'), $args, array($url, $path)), $options);

        $process->run();

        if (!$process->isSuccessFul()) {
            throw new RuntimeException(sprintf('Error while initializing repository: %s', $process->getErrorOutput()));
        }

        return new Repository($path, $options);
    }