protected function getBaseQuery()
    {
        $config = $this->getConfig();
        $connector = $this->getConnector();
        /** @var \Gerrie\Component\Connection\SSH $connector  */

        $connector->reset();

        $host = $config['host'];
        if (isset($config['user']) === true) {
            $host = $config['user'] . '@' . $host;
        }
        $connector->addCommandPart($host);
        $connector->addCommandPart('gerrit');

        return $connector;
    }