code: def iter_items(cls, repo, common_path=None, remote=None):
          
          common_path = common_path or cls._common_path_default
          if remote is not None:
              common_path = join_path(common_path, str(remote))
          # END handle remote constraint
          return super(RemoteReference, cls).iter_items(repo, common_path)
docs: Iterate remote references, and if given, constrain them to the given remote