public static function create($dir, $debug = false, array $options = array())
    {
        $options = array_merge(self::$defaultOptions, $options);
        $commandString = $options['git_executable'].' init';
        $command = new $options['command_class']($dir, $commandString, $debug);
        $command->run();

        $repo = new self($dir, $debug, $options);

        return $repo;
    }
public static function create($dir, $debug = false, array $options = array())
    {
        $options = array_merge(self::$defaultOptions, $options);
        $commandString = $options['git_executable'].' init';
        $command = new $options['command_class']($dir, $commandString, $debug);
        $command->run();

        $repo = new self($dir, $debug, $options);

        return $repo;
    }
public static function create ( $ dir , $ debug = false , array $ options = array ( ) ) { $ options = array_merge ( self :: $ defaultOptions , $ options ) ; $ commandString = $ options [ 'git_executable' ] . ' init' ; $ command = new $ options [ 'command_class' ] ( $ dir , $ commandString , $ debug ) ; $ command -> run ( ) ; $ repo = new self ( $ dir , $ debug , $ options ) ; return $ repo ; }
Create a new Git repository in filesystem, running "git init"
Returns the git repository wrapper

@param   string $dir real filesystem path of the repository
@param   boolean $debug
@param   array $options
@return PHPGit_Repository
Create a new Git repository in filesystem running git init Returns the git repository wrapper