HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/git/refs/__pycache__/remote.cpython-310.pyc
o

;jV�@s�dZdgZddlZddlmZddlmZddlmZm	Z	m
Z
mZmZddl
mZer7dd	lmZdd
lmZGdd�de�ZdS)zHModule implementing a remote object allowing easy access to git remotes.�RemoteReference�N)�	join_path�)�Head)�Any�Iterator�NoReturn�
TYPE_CHECKING�Union)�PathLike)�Remote)�Repocs�eZdZdZejZe		ddddee	dfdedde
d	e
d
edf�fdd�
�Zeddd
dd	e
d
dfdd��Z
ede
d	e
d
efdd��Z�ZS)rz&A reference pointing to a remote head.N�repor
�common_path�remote)rN�args�kwargs�returncs.|p|j}|durt|t|��}t��||�S)zLIterate remote references, and if given, constrain them to the given remote.N)�_common_path_defaultr�str�super�
iter_items)�clsrrrrr��	__class__��C/opt/saltstack/salt/lib/python3.10/site-packages/git/refs/remote.pyr s

zRemoteReference.iter_items�refsc	Os�|D]}|�|j�q|jjddg|�R�|D]/}z
t�|�|j|j��Wn	ty0Ynwz
t�|�|j	|j��WqtyGYqwdS)z�Delete the given remote references.

        :note:
            `kwargs` are given for comparability with the base class method as we
            should not narrow the signature.
        z-dz-rN)
Z_check_ref_name_valid�path�git�branch�os�removeZ_get_validated_pathZ
common_dir�OSErrorZgit_dir)rrrr�refrrr�delete5s���zRemoteReference.deletecOstd��)zERaise :exc:`TypeError`. Defined so the ``create`` method is disabled.z*Cannot explicitly create remote references)�	TypeError)rrrrrr�createOszRemoteReference.create)NN)�__name__�
__module__�__qualname__�__doc__rZ_remote_common_path_defaultr�classmethodr
rrrrr%rr'�
__classcell__rrrrrs.��
����� )r+�__all__r!Zgit.utilr�headr�typingrrrr	r
Z	git.typesrZ
git.remoterZgit.repor
rrrrr�<module>s