protected static function initRepository(Binary $git, $path, $initArguments = null)
    {
        $initArguments = $initArguments ?: Array();

        /** @var $result CallResult */
        $result = $git->{'init'}($path, $initArguments);
        $result->assertSuccess(sprintf('Cannot initialize a Git repository in "%s"', $path));
    }
protected static function initRepository(Binary $git, $path, $initArguments = null)
    {
        $initArguments = $initArguments ?: Array();

        /** @var $result CallResult */
        $result = $git->{'init'}($path, $initArguments);
        $result->assertSuccess(sprintf('Cannot initialize a Git repository in "%s"', $path));
    }
protected static function initRepository ( Binary $ git , $ path , $ initArguments = null ) { $ initArguments = $ initArguments ? : Array ( ) ; /** @var $result CallResult */ $ result = $ git -> { 'init' } ( $ path , $ initArguments ) ; $ result -> assertSuccess ( sprintf ( 'Cannot initialize a Git repository in "%s"' , $ path ) ) ; }
Initializes a path to be used as a Git repository

@param   Binary   $git           The Git binary
@param   string   $path          The repository path
@param   array    $initArguments Arguments to pass to git-init when initializing the repository
Initializes a path to be used as a Git repository