def get_git_remote_url(path='.', remote='origin'):
    """
    Get git remote url
    :param path: path to repo
    :param remote:
    :return: remote url or exception
    """
    return dulwich.repo.Repo.discover(path).get_config()\
        .get((b'remote', remote.encode('utf-8')), b'url').decode('utf-8')