AlkantarClanX12

Your IP : 3.144.114.8


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/git/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/git/__pycache__/exc.cpython-311.pyc

�

�܋f.���dZddlmZddlTddlmZddlmZddlmZm	Z	m
Z
mZmZddl
mZerddlmZGd	�d
e��ZGd�de��ZGd
�de��ZGd�dee��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�d e��ZGd!�d"e��ZGd#�d$e��Z d%S)&zE Module containing all exceptions thrown throughout the git package, �)�BadName)�*��safe_decode)�remove_password_if_present)�List�Sequence�Tuple�Union�
TYPE_CHECKING)�PathLike)�Repoc��eZdZdZdS)�GitErrorz%Base class for all package exceptionsN��__name__�
__module__�__qualname__�__doc__���X/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/exc.pyrrs������/�/�/�/rrc��eZdZdZdS)�InvalidGitRepositoryErrorzAThrown if the given repository appears to have an invalid format.Nrrrrrrs������K�K�K�Krrc��eZdZdZdS)�WorkTreeRepositoryUnsupportedz9Thrown to indicate we can't handle work tree repositoriesNrrrrrr s������C�C�C�Crrc��eZdZdZdS)�NoSuchPathErrorz3Thrown if a path could not be access by the system.Nrrrrrr$s������=�=�=�=rrc��eZdZdZdS)�UnsafeProtocolErrorzGThrown if unsafe protocols are passed without being explicitly allowed.Nrrrrr r (s������Q�Q�Q�Qrr c��eZdZdZdS)�UnsafeOptionErrorzEThrown if unsafe options are passed without being explicitly allowed.Nrrrrr"r",s������O�O�O�Orr"c��eZdZdZdZ			ddeeeeedfefdeee	de
fdeeedfdeeedfd	df
d
�Zd	efd�Z
dS)
�CommandErrorz�Base class for exceptions thrown at every stage of `Popen()` execution.

    :param command:
        A non-empty list of argv comprising the command-line.
    zCmd('%s') failed%sN�command.�status�stderr�stdout�returnc��t|ttf��s|���}t	|��|_||_|r�t|t��r5t|��j	�dtt|�����d�}nc	dt|��z}nO#ttf$r;tt|����}t|t��rd|zn|}YnwxYwt|jd��|_d�d�|jD����|_|rd|zpd	|_t|��}t|��}|rd
|zpd|_|rd|zpd|_dS)
Nz('z')z
exit code(%s)z'%s'r� c3�4K�|]}t|��V��dS�Nr)�.0�is  r�	<genexpr>z(CommandError.__init__.<locals>.<genexpr>Rs(���� F� F�A��Q��� F� F� F� F� F� Frz due to: %s�!z
  stdout: '%s'�z
  stderr: '%s')�
isinstance�tuple�list�splitrr%r&�	Exception�typerr�str�int�
ValueError�	TypeError�_cmd�join�_cmdline�_causer(r')�selfr%r&r'r(�s�
stdout_decode�
stderr_decodes        r�__init__zCommandError.__init__<s����'�E�4�=�1�1�	&��m�m�o�o�G�1�'�:�:�������	J��&�)�,�,�
J�'+�F�|�|�'<�'<�'<�k�#�f�+�+�>V�>V�>V�>V�W���J�,�s�6�{�{�:�F�F��"�I�.�J�J�J�#�C��K�K�0�0�A�+5�f�c�+B�+B�I�V�a�Z�Z��F�F�F�J���� ���Q��0�0��	���� F� F��� F� F� F�F�F��
��7���!7�>�3���#�F�+�+�
�#�F�+�+�
�#�J�(:�]�(J�P�b���#�J�(:�]�(J�P�b����s�B,�,A	C8�7C8c�X�|jdz|j|j|j|j|jfzS)Nz
  cmdline: %s%s%s)�_msgr=r@r?r(r'�rAs r�__str__zCommandError.__str__Ys5���	�1�1��I��K��M��K��K�6
�
�	
r�NNN)rrrrrGrrr9r
r:r7�bytesrErIrrrr$r$0s��������� �D�
48�*.�*.�Q�Q��t�C�y�%��S��/�3�6�7�Q��c�3��i�/�0�Q��e�S�$�&�'�	Q�
�e�S�$�&�'�Q�
�
Q�Q�Q�Q�:
��
�
�
�
�
�
rr$c�j��eZdZdZdeeeeeefdeeefddf�fd�Z	�xZ
S)�GitCommandNotFoundz�Thrown if we cannot find the `git` executable in the PATH or at the path given by
    the GIT_PYTHON_GIT_EXECUTABLE environment variabler%�causer)Nc�h��tt|���||��d|_dS)NzCmd('%s') not found%s)�superrMrErG)rAr%rN�	__class__s   �rrEzGitCommandNotFound.__init__gs/���
� �$�'�'�0�0��%�@�@�@�+��	�	�	r)rrrrrrr9r
r7rE�
__classcell__�rQs@rrMrMcs}�������:�:�,��d�3�i��s��S�&@� A�,�%�PS�U^�P^�J_�,�dh�,�,�,�,�,�,�,�,�,�,rrMc���eZdZdZ			d
deeeeedfefdeeede	fdee
edfdee
edfddf
�fd	�
Z�xZS)�GitCommandErrorzGThrown if execution of the git command fails with non-zero status code.Nr%.r&r'r(r)c�^��tt|���||||��dSr-)rPrUrE�rAr%r&r'r(rQs     �rrEzGitCommandError.__init__os/���	�o�t�$�$�-�-�g�v�v�v�N�N�N�N�NrrJ�
rrrrrrr9r
r:r7rKrErRrSs@rrUrUls��������Q�Q�
48�*.�*.�O�O��t�C�y�%��S��/�3�6�7�O��c�3��i�/�0�O��e�S�$�&�'�	O�
�e�S�$�&�'�O�
�
O�O�O�O�O�O�O�O�O�OrrUc
�^�eZdZdZdedeedeedeeddf
d�Zdefd	�Z	dS)
�
CheckoutErroraThrown if a file could not be checked out from the index as it contained
    changes.

    The .failed_files attribute contains a list of relative paths that failed
    to be checked out as they contained changes that did not exist in the index.

    The .failed_reasons attribute contains a string informing about the actual
    cause of the issue.

    The .valid_files attribute contains a list of relative paths to files that
    were checked out successfully and hence match the version stored in the
    index�message�failed_files�valid_files�failed_reasonsr)Nc�f�t�||��||_||_||_dSr-)r7rEr\r^r])rAr[r\r]r^s     rrEzCheckoutError.__init__�s8��	���4��)�)�)�(���,���&����rc�L�t�|��d|jzzS)Nz:%s)r7rIr\rHs rrIzCheckoutError.__str__�s#��� � ��&�&���1B�)B�B�Br)
rrrrr9r	r
rrErIrrrrZrZys�������
�
�'��'��x�(�'��h�'�	'�
�S�	�'�
�
'�'�'�'�C��C�C�C�C�C�CrrZc��eZdZdZdS)�
CacheErrorzNBase for all errors related to the git index, which is called cache internallyNrrrrrbrb�s������X�X�X�Xrrbc��eZdZdZdS)�UnmergedEntriesErrorzZThrown if an operation cannot proceed as there are still unmerged
    entries in the cacheNrrrrrdrd�s���������rrdc���eZdZdZ		d
deeeeedfefdeeede	fdee
edfdee
edfddf
�fd	�
Z�xZS)�HookExecutionErrorz�Thrown if a hook exits with a non-zero exit code. It provides access to the exit code and the string returned
    via standard outputNr%.r&r'r(r)c�l��tt|���||||��d|_dS)NzHook('%s') failed%s)rPrfrErGrWs     �rrEzHookExecutionError.__init__�s5���	� �$�'�'�0�0��&�&�&�Q�Q�Q�)��	�	�	r)NNrXrSs@rrfrf�s����������+/�*.�	*�	*��t�C�y�%��S��/�3�6�7�	*��c�3��i�/�0�	*��e�S�$�&�'�		*�
�e�S�$�&�'�	*�
�
	*�	*�	*�	*�	*�	*�	*�	*�	*�	*rrfc�2�eZdZdZdddeddfd�Zdefd�ZdS)	�RepositoryDirtyErrorzjThrown whenever an operation on a repository fails as it has uncommitted changes that would be overwritten�reporr[r)Nc�"�||_||_dSr-�rjr[)rArjr[s   rrEzRepositoryDirtyError.__init__�s����	�����rc�&�d|j�d|j��S)Nz!Operation cannot be performed on z: rlrHs rrIzRepositoryDirtyError.__str__�s���<@�I�I�I�t�|�|�T�Tr)rrrrr9rErIrrrriri�se������t�t��V��c��d�����U��U�U�U�U�U�UrriN)!r�	gitdb.excr�
git.compatr�git.utilr�typingrr	r
rr�	git.typesr
�
git.repo.baserr7rrr�OSErrorrr r"r$rMrUrZrbrdrfrirrr�<module>rusD��L�K�����������"�"�"�"�"�"�/�/�/�/�/�/�?�>�>�>�>�>�>�>�>�>�>�>�>�>��������#�"�"�"�"�"�"�
0�0�0�0�0�y�0�0�0�L�L�L�L�L��L�L�L�D�D�D�D�D�$=�D�D�D�>�>�>�>�>�h��>�>�>�R�R�R�R�R�(�R�R�R�P�P�P�P�P��P�P�P�0
�0
�0
�0
�0
�8�0
�0
�0
�f,�,�,�,�,��,�,�,�
O�
O�
O�
O�
O�l�
O�
O�
O�C�C�C�C�C�H�C�C�C�>Y�Y�Y�Y�Y��Y�Y�Y�
�����:����

*�
*�
*�
*�
*��
*�
*�
*� U�U�U�U�U�8�U�U�U�U�Ur