def _get_remote(self, cached=True):
        '''
        Helper function to determine remote

        :param cached:
            Use cached values or query remotes
        '''

        return self.m(
            'getting current remote',
            cmdd=dict(
                cmd='git remote show %s' % ('-n' if cached else ''),
                cwd=self.local
            ),
            verbose=False
        )
Helper function to determine remote

        :param cached:
            Use cached values or query remotes