Platformsh\Cli\Helper\GitHelper::fetch PHP Method

fetch() public method

Fetch from the Git remote.
public fetch ( string $remote, string | null $branch = null, string | null $dir = null, boolean $mustRun = false ) : boolean
$remote string
$branch string | null
$dir string | null
$mustRun boolean
return boolean
    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);
    }