There's no need to keep passing gitbin in
[gitphp.git] / include / git / GitExe.class.php
blob:a/include/git/GitExe.class.php -> blob:b/include/git/GitExe.class.php
--- a/include/git/GitExe.class.php
+++ b/include/git/GitExe.class.php
@@ -45,8 +45,9 @@
 	 * @param mixed $project project to operate on
 	 * @return mixed git executable class
 	 */
-	public function __construct($binary, $project = null)
+	public function __construct($project = null)
 	{
+		$this->binary = GitPHP_Config::GetInstance()->GetValue('gitbin');
 		if (empty($binary)) {
 			// try to pick a reasonable default
 			if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {

comments