Fix bug in git binary fallback
[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
@@ -57,7 +57,7 @@
 	 */
 	public function __construct($project = null)
 	{
-		$this->binary = GitPHP_Config::GetInstance()->GetValue('gitbin');
+		$binary = GitPHP_Config::GetInstance()->GetValue('gitbin');
 		if (empty($binary)) {
 			// try to pick a reasonable default
 			if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {

comments