public function getCurrentRepository()
    {
        $credentials = $this->getRepositoryCredentials();
        $credentials['repository'] = $this->getRepositoryEndpoint();
        $credentials['branch'] = $this->getRepositoryBranch();

        return new RepositoryKey($credentials);
    }