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