HLꚌb d Z ddlmZ ddlT ddlmZ ddlmZ ddlmZm Z m
Z
mZmZ ddl
mZ erddlmZ G d d
e Z G d de Z G d
de Z G d dee Z G d de Z G d de Z G d de Z G d de Z G d de Z G d de Z G d de Z G d d e Z G d! d"e Z G d# d$e Z d%S )&zE Module containing all exceptions thrown throughout the git package, )BadName)*safe_decode)remove_password_if_present)ListSequenceTupleUnion
TYPE_CHECKING)PathLike)Repoc e Zd ZdZdS )GitErrorz%Base class for all package exceptionsN__name__
__module____qualname____doc__ Y/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/git/exc.pyr r s ////r r c e Zd ZdZdS )InvalidGitRepositoryErrorzAThrown if the given repository appears to have an invalid format.Nr r r r r r s KKKKr r c e Zd ZdZdS )WorkTreeRepositoryUnsupportedz9Thrown to indicate we can't handle work tree repositoriesNr r r r r r s CCCCr r c e Zd ZdZdS )NoSuchPathErrorz3Thrown if a path could not be access by the system.Nr r r r r r $ s ====r r c e Zd ZdZdS )UnsafeProtocolErrorzGThrown if unsafe protocols are passed without being explicitly allowed.Nr r r r r r ( s QQQQr r c e Zd ZdZdS )UnsafeOptionErrorzEThrown if unsafe options are passed without being explicitly allowed.Nr r r r r" r" , s OOOOr r" c e Zd ZdZdZ ddeee eedf ef deee de
f deeedf deeedf d df
d
Zd efdZ
dS )
CommandErrorzBase 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%sNcommand.statusstderrstdoutreturnc t |t t f s| }t | | _ || _ |rt |t r5t | j dt t | d}nc dt | z }nO# t t f$ r; t t | }t |t rd|z n|}Y nw xY wt | j d | _ d d | j D | _ |rd|z pd | _ t | }t | }|rd
|z pd| _ |rd|z pd| _ d S )
Nz('z')z
exit code(%s)z'%s'r c 3 4 K | ]}t | V d S Nr ).0is r