public function getCurrentRemote()
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'remote'}($this->getRepositoryPath(), array(
             '-v'
        ));
        $result->assertSuccess(sprintf('Cannot remote "%s"', $this->getRepositoryPath()));

        $tmp = $result->getStdOut();

        preg_match_all('/([a-z]*)\h(.*)\h\((.*)\)/', $tmp, $matches);

        $retVar = array();
        foreach($matches[0] as $key => $value)
            $retVar[$matches[1][$key]][$matches[3][$key]] = $matches[2][$key];

        return $retVar;
    }
public function getCurrentRemote()
    {
        /** @var $result CallResult */
        $result = $this->getGit()->{'remote'}($this->getRepositoryPath(), array(
             '-v'
        ));
        $result->assertSuccess(sprintf('Cannot remote "%s"', $this->getRepositoryPath()));

        $tmp = $result->getStdOut();

        preg_match_all('/([a-z]*)\h(.*)\h\((.*)\)/', $tmp, $matches);

        $retVar = array();
        foreach($matches[0] as $key => $value)
            $retVar[$matches[1][$key]][$matches[3][$key]] = $matches[2][$key];

        return $retVar;
    }
public function getCurrentRemote ( ) { /** @var $result CallResult */ $ result = $ this -> getGit ( ) -> { 'remote' } ( $ this -> getRepositoryPath ( ) , array ( '-v' ) ) ; $ result -> assertSuccess ( sprintf ( 'Cannot remote "%s"' , $ this -> getRepositoryPath ( ) ) ) ; $ tmp = $ result -> getStdOut ( ) ; preg_match_all ( '/([a-z]*)\h(.*)\h\((.*)\)/' , $ tmp , $ matches ) ; $ retVar = array ( ) ; foreach ( $ matches [ 0 ] as $ key => $ value ) $ retVar [ $ matches [ 1 ] [ $ key ] ] [ $ matches [ 3 ] [ $ key ] ] = $ matches [ 2 ] [ $ key ] ; return $ retVar ; }
Returns the remote info

@return  array
Returns the remote info