updated plugin Gitium version 1.0.7

This commit is contained in:
2024-10-09 12:44:21 +00:00
committed by Gitium
parent c54fa007bd
commit 627ec103fe
9 changed files with 70 additions and 35 deletions

View File

@ -15,7 +15,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define('GITIGNORE', <<<EOF
if (!defined('GITIGNORE'))
define('GITIGNORE', <<<EOF
*.log
*.swp
*.back
@ -134,7 +135,9 @@ class Git_Wrapper {
}
private function get_env() {
$env = array();
$env = array(
'HOME' => getenv( 'HOME' ),
);
$key_file = null;
if ( defined( 'GIT_SSH' ) && GIT_SSH ) {
@ -162,7 +165,7 @@ class Git_Wrapper {
$env = $this->get_env();
$git_bin_path = apply_filters( 'gitium_git_bin_path', '' );
$cmd = "${git_bin_path}git $args 2>&1";
$cmd = "{$git_bin_path}git $args 2>&1";
$proc = proc_open(
$cmd,