From 149c826eb9ae913eb8fb16b84efe399ce19233dc Mon Sep 17 00:00:00 2001 From: Joshua Ruehlig Date: Thu, 12 May 2016 22:57:54 -0700 Subject: [PATCH] Assume PHP can find git instead of hardcode path 1) Assume PHP can find git path instead of hardcoding /usr/bin/git * For PHP-FPM this is set in the config with a line similar to `env[PATH] = /usr/local/bin:/usr/bin:/bin` 2) Remove redundant `windows_mode()` which is now the default 3) Bump version --- Git.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Git.php b/Git.php index 864e1ed..777fd1f 100755 --- a/Git.php +++ b/Git.php @@ -6,7 +6,7 @@ * A PHP git library * * @package Git.php - * @version 0.1.4 + * @version 0.1.5 * @author James Brumond * @copyright Copyright 2013 James Brumond * @repo http://github.com/kbjr/Git.php @@ -31,7 +31,7 @@ class Git { * * @var string */ - protected static $bin = '/usr/bin/git'; + protected static $bin = 'git'; /** * Sets git executable path @@ -49,13 +49,6 @@ public static function get_bin() { return self::$bin; } - /** - * Sets up library for use in a default Windows environment - */ - public static function windows_mode() { - self::set_bin('git'); - } - /** * Create a new git repository *