/** * Instanciate a new Git repository wrapper * * @param string $dir real filesystem path of the repository * @param boolean $debug * @param array $options */ public function __construct($dir, $debug = false, array $options = array()) { $this->dir = $dir; $this->debug = $debug; $this->options = array_merge(self::$defaultOptions, $options); $this->checkIsValidRepo(); $config = new Configuration($this); if (strlen($this->options['repository']) || strlen($this->options['login']) || strlen($this->options['password'])) { $config->setAccount($this->options['repository'], $this->options['login'], $this->options['password']); } }