public function pullRemote($remote, $ref = null) { $command = ['git', 'pull', $remote]; if ($ref) { $command[] = $ref; } $this->processHelper->runCommand($command); }