public function fetch($remote, $branch = null, $dir = null, $mustRun = false)
    {
        $args = ['fetch', $remote];
        if ($branch !== null) {
            $args[] = $branch;
        }

        return (bool) $this->execute($args, $dir, $mustRun, false);
    }
public function fetch($remote, $branch = null, $dir = null, $mustRun = false)
    {
        $args = ['fetch', $remote];
        if ($branch !== null) {
            $args[] = $branch;
        }

        return (bool) $this->execute($args, $dir, $mustRun, false);
    }
public function fetch ( $ remote , $ branch = null , $ dir = null , $ mustRun = false ) { $ args = [ 'fetch' , $ remote ] ; if ( $ branch !== null ) { $ args [ ] = $ branch ; } return ( bool ) $ this -> execute ( $ args , $ dir , $ mustRun , false ) ; }
Fetch from the Git remote.

@param string      $remote
@param string|null $branch
@param string|null $dir
@param bool        $mustRun

@return bool
Fetch from the Git remote .