src/Gitonomy/Git/Admin.php
public static function isValidRepository($url, array $options = array())
    {
        $process = static::getProcess('ls-remote', array($url), $options);

        $process->run();

        return $process->isSuccessFul();
    }
public static function isValidRepository($url, array $options = array())
    {
        $process = static::getProcess('ls-remote', array($url), $options);

        $process->run();

        return $process->isSuccessFul();
    }
Checks the validity of a git repository url without cloning it.

This will use the `ls-remote` command of git against the given url.
Usually, this command returns 0 when successful, and 128 when the
repository is not found.

@param string $url     url of repository to check
@param array  $options options for Repository creation

@return bool true if url is valid