updated plugin Gitium
version 1.0.5
This commit is contained in:
@ -155,11 +155,13 @@ class Git_Wrapper {
|
||||
|
||||
protected function _call(...$args) {
|
||||
$args = join( ' ', array_map( 'escapeshellarg', $args ) );
|
||||
$cmd = "git $args 2>&1";
|
||||
$return = -1;
|
||||
$response = array();
|
||||
$env = $this->get_env();
|
||||
|
||||
$git_bin_path = apply_filters( 'gitium_git_bin_path', '' );
|
||||
$cmd = "${git_bin_path}git $args 2>&1";
|
||||
|
||||
$proc = proc_open(
|
||||
$cmd,
|
||||
array(
|
||||
@ -430,7 +432,7 @@ class Git_Wrapper {
|
||||
function get_remote_branches() {
|
||||
list( , $response ) = $this->_call( 'branch', '-r' );
|
||||
$response = array_map( 'trim', $response );
|
||||
$response = array_map( create_function( '$b', 'return str_replace("origin/","",$b);' ), $response );
|
||||
$response = array_map( function( $b ) { return str_replace( "origin/", "", $b ); }, $response );
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user