def remote_get(self, cwd=None, remote='origin', user=None):

        if not cwd:
            cwd = self['path']

        try:
            cmd = 'git remote show -n {0}'.format(remote)
            ret = _git_run(cmd, cwd=cwd, runas=user)
            lines = ret
            remote_fetch_url = lines[1].replace('Fetch URL: ', '').strip()
            remote_push_url = lines[2].replace('Push  URL: ', '').strip()
            if remote_fetch_url != remote and remote_push_url != remote:
                res = (remote_fetch_url, remote_push_url)
                return res
            else:
                return None
        except exc.VCSPullException:
            return None
Parse template tag contents
dataset/ETHPy150Open tony/vcspull/vcspull/repo/git.py/GitRepo.remote_get--crossover with--dataset/ETHPy150Open dyve/django-bootstrap3/bootstrap3/utils.py/parse_token_contents