public function cloneRepository($uri, $folder = null, $branch = null)
    {
        $command = new Command;
        $command
            ->binary('git')
            ->argument('clone')
            ->argument($uri);

        if (null !== $folder) {
            $command->argument($folder);
        }

        if (null !== $branch) {
            $command->option('branch', $branch);
        }

        return 0 === $this->execute($command);

    }