/** * __construct * * Constructor * * @param string $binary path to git binary * @param mixed $project project to operate on * @return mixed git executable class */ public function __construct($project = null) { $binary = GitPHP_Config::GetInstance()->GetValue('gitbin'); if (empty($binary)) { $this->binary = GitPHP_GitExe::DefaultBinary(); } else { $this->binary = $binary; } $this->SetProject($project); }
/** * Constructor * * @param string $binary path to git binary */ public function __construct($binary = '') { if (empty($binary)) { $binary = GitPHP_GitExe::DefaultBinary(); } $this->binary = $binary; }