ó
    Ë5žjÏ  ã                   óÈ  • S r / SQrSSKJrJrJrJrJrJrJ	r	J
r
  SSKJr  SSKJr  SSKJrJrJrJrJr  SSKJr  \(       a  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      r  " S S\5      r! " S S\!5      r" " S S\!5      r# " S S\5      r$ " S S\5      r% " S S \%5      r& " S! S"\!5      r' " S# S$\5      r(g%)&z-Exceptions thrown throughout the git package.)ÚAmbiguousObjectNameÚBadNameÚ	BadObjectÚBadObjectTypeÚInvalidDBRootÚODBErrorÚ
ParseErrorÚUnsupportedOperationÚGitErrorÚInvalidGitRepositoryErrorÚWorkTreeRepositoryUnsupportedÚNoSuchPathErrorÚUnsafeProtocolErrorÚUnsafeOptionErrorÚCommandErrorÚGitCommandNotFoundÚGitCommandErrorÚCheckoutErrorÚ
CacheErrorÚUnmergedEntriesErrorÚHookExecutionErrorÚRepositoryDirtyErroré    )r   r   r   r   r   r   r   r	   ©Úsafe_decode)Úremove_password_if_present)ÚListÚSequenceÚTupleÚTYPE_CHECKINGÚUnion)ÚPathLike)ÚRepoc                   ó   • \ rS rSrSrSrg)r
   é=   z&Base class for all package exceptions.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r%   ó    Ú•C:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\git/exc.pyr
   r
   =   s   † Ü0r-   r
   c                   ó   • \ rS rSrSrSrg)r   éA   zAThrown if the given repository appears to have an invalid format.r%   Nr&   r%   r-   r.   r   r   A   s   † ÜKr-   r   c                   ó   • \ rS rSrSrSrg)r   éE   z:Thrown to indicate we can't handle work tree repositories.r%   Nr&   r%   r-   r.   r   r   E   s   † ÜDr-   r   c                   ó   • \ rS rSrSrSrg)r   éI   z3Thrown if a path could not be access by the system.r%   Nr&   r%   r-   r.   r   r   I   s   † Ü=r-   r   c                   ó   • \ rS rSrSrSrg)r   éM   zGThrown if unsafe protocols are passed without being explicitly allowed.r%   Nr&   r%   r-   r.   r   r   M   s   † ÜQr-   r   c                   ó   • \ rS rSrSrSrg)r   éQ   zEThrown if unsafe options are passed without being explicitly allowed.r%   Nr&   r%   r-   r.   r   r   Q   s   † ÜOr-   r   c                   ó–   • \ rS rSrSrSr    SS\\\   \	\S4   \4   S\\\
S\4   S\\\S4   S	\\\S4   S
S4
S jjrS
\4S jrSrg)r   éU   z¤Base class for exceptions thrown at every stage of :class:`~subprocess.Popen`
execution.

:param command:
    A non-empty list of argv comprising the command-line.
zCmd('%s') failed%sNÚcommand.ÚstatusÚstderrÚstdoutÚreturnc                 ó$  • [        U[        [        45      (       d  UR                  5       n[	        U5      U l        X l        U(       aT  [        U[        5      (       a0  [        U5      R                  < S[        [        U5      5      < S3nO S[        U5      -  n[        U R
                  S   5      U l        SR!                  S U R
                   5       5      U l        U=(       a    SU-  =(       d    S	U l        [        U5      n[        U5      nU=(       a    S
U-  =(       d    SU l        U=(       a    SU-  =(       d    SU l        g ! [        [        4 a3    [        [        U5      5      n[        U[        5      (       a  SU-  OUn Nñf = f)Nz('z')zexit code(%s)z'%s'r   Ú c              3   ó8   #   • U  H  n[        U5      v •  M     g 7f©Nr   )Ú.0Úis     r.   Ú	<genexpr>Ú(CommandError.__init__.<locals>.<genexpr>{   s   é € Ð Fº°A¤¨Q§ ºùs   ‚z due to: %sÚ!z
  stdout: '%s'Ú z
  stderr: '%s')Ú
isinstanceÚtupleÚlistÚsplitr   r;   r<   Ú	ExceptionÚtyper'   r   ÚstrÚintÚ
ValueErrorÚ	TypeErrorÚ_cmdÚjoinÚ_cmdlineÚ_causer>   r=   )Úselfr;   r<   r=   r>   ÚsÚstdout_decodeÚstderr_decodes           r.   Ú__init__ÚCommandError.__init__e   s7  € ô ˜'¤E¬4 =×1Ñ1Ø—m‘m“oˆGÜ1°'Ó:ˆŒØŒÞÜ˜&¤)×,Ñ,Ü'+¨F£|×'<Ô'<¼kÌ#ÈfË+Ö>VÐW‘ðJØ,¬s°6«{Ñ:�Fô
   §¡¨Q¡Ó0ˆŒ	ØŸ™Ñ F¸¿ºÓ FÓFˆŒØ×7 °Ñ!7×>¸3ˆŒÜ# FÓ+ˆÜ# FÓ+ˆØ#×JÐ(:¸]Ñ(J×PÈbˆŒØ#×JÐ(:¸]Ñ(J×PÈbˆ�øô #¤IÐ.ó JÜ#¤C¨£KÓ0�AÜ+5°f¼c×+BÑ+B˜V ašZÈ’FðJús   ÂE ÅA FÆFc                 ó”   • U R                   S-   U R                  U R                  U R                  U R                  U R
                  4-  $ )Nz
  cmdline: %s%s%s)Ú_msgrT   rW   rV   r>   r=   ©rX   s    r.   Ú__str__ÚCommandError.__str__‚   sA   € Ø—	‘	Ð1Ñ1Ø�I‰IØ�K‰KØ�M‰MØ�K‰KØ�K‰Kð6
ñ 
ð 	
r-   )rW   rT   rV   r;   r<   r=   r>   ©NNN)r'   r(   r)   r*   r+   r_   r    r   rP   r   rQ   rN   Úbytesr\   ra   r,   r%   r-   r.   r   r   U   s£   † ñð  €Dðð 48Ø*.Ø*.ñQà�t˜C‘y %¨¨S¨¡/°3Ð6Ñ7ðQð �c˜3  iÐ/Ñ0ðQð �e˜S $Ð&Ñ'ð	Qð
 �e˜S $Ð&Ñ'ðQð 
õQð:
˜÷ 
r-   r   c                   ó^   ^ • \ rS rSrSrS\\\   \\   \4   S\\\	4   SS4U 4S jjr
SrU =r$ )	r   éŒ   z›Thrown if we cannot find the ``git`` executable in the :envvar:`PATH` or at the
path given by the :envvar:`GIT_PYTHON_GIT_EXECUTABLE` environment variable.r;   Úcauser?   Nc                 ó2   >• [         TU ]  X5        SU l        g )NzCmd('%s') not found%s©Úsuperr\   r_   )rX   r;   rg   Ú	__class__s      €r.   r\   ÚGitCommandNotFound.__init__�   s   ø€ Ü‰Ñ˜Ô(Ø+ˆ�	r-   ©r_   )r'   r(   r)   r*   r+   r    r   rP   r   rN   r\   r,   Ú__classcell__©rk   s   @r.   r   r   Œ   sI   ø† ñSð,  d¨3¡i°°s±¸SÐ&@Ñ Að ,È%ÐPSÐU^ÐP^ÑJ_ð ,Ðdh÷ ,õ ,r-   r   c                   ó�   ^ • \ rS rSrSr   SS\\\   \\S4   \4   S\\\	S\
4   S\\\S4   S\\\S4   S	S4
U 4S
 jjjrSrU =r$ )r   é•   zGThrown if execution of the git command fails with non-zero status code.Nr;   .r<   r=   r>   r?   c                 ó&   >• [         TU ]  XX45        g rC   )rj   r\   ©rX   r;   r<   r=   r>   rk   s        €r.   r\   ÚGitCommandError.__init__˜   s   ø€ ô 	‰Ñ˜¨&Õ9r-   r%   rc   ©r'   r(   r)   r*   r+   r    r   rP   r   rQ   rN   rd   r\   r,   rn   ro   s   @r.   r   r   •   s‰   ø† ÙQð
 48Ø*.Ø*.ñ:à�t˜C‘y %¨¨S¨¡/°3Ð6Ñ7ð:ð �c˜3  iÐ/Ñ0ð:ð �e˜S $Ð&Ñ'ð	:ð
 �e˜S $Ð&Ñ'ð:ð 
÷:ö :r-   r   c            
       óV   • \ rS rSrSrS\S\\   S\\   S\\   SS4
S	 jr	S\4S
 jr
Srg)r   é¢   aú  Thrown if a file could not be checked out from the index as it contained
changes.

The :attr:`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 :attr:`failed_reasons` attribute contains a string informing about the actual
cause of the issue.

The :attr:`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                 óR   • [         R                  X5        X l        X@l        X0l        g rC   )rN   r\   ry   r{   rz   )rX   rx   ry   rz   r{   s        r.   r\   ÚCheckoutError.__init__°   s$   € ô 	×Ñ˜4Ô)Ø(ÔØ,ÔØ&Õr-   c                 óL   • [         R                  U 5      SU R                  -  -   $ )Nz:%s)rN   ra   ry   r`   s    r.   ra   ÚCheckoutError.__str__¼   s#   € Ü× Ñ  Ó&¨°×1BÑ1BÑ)BÑBÐBr-   )ry   r{   rz   )r'   r(   r)   r*   r+   rP   r   r!   r   r\   ra   r,   r%   r-   r.   r   r   ¢   sX   † ñð
'àð
'ð ˜xÑ(ð
'ð ˜hÑ'ð	
'ð
 ˜S™	ð
'ð 
ô
'ðC˜÷ Cr-   r   c                   ó   • \ rS rSrSrSrg)r   éÀ   zQBase for all errors related to the git index, which is called "cache"
internally.r%   Nr&   r%   r-   r.   r   r   À   s   † ôr-   r   c                   ó   • \ rS rSrSrSrg)r   éÅ   zWThrown if an operation cannot proceed as there are still unmerged
entries in the cache.r%   Nr&   r%   r-   r.   r   r   Å   s   † ôr-   r   c                   óŽ   ^ • \ rS rSrSr  SS\\\   \\S4   \4   S\\\	S\
4   S\\\S4   S\\\S4   S	S4
U 4S
 jjjrSrU =r$ )r   éÊ   z†Thrown if a hook exits with a non-zero exit code.

This provides access to the exit code and the string returned via standard output.
Nr;   .r<   r=   r>   r?   c                 ó4   >• [         TU ]  XX45        SU l        g )NzHook('%s') failed%sri   rs   s        €r.   r\   ÚHookExecutionError.__init__Ð   s   ø€ ô 	‰Ñ˜¨&Ô9Ø)ˆ�	r-   rm   )NNru   ro   s   @r.   r   r   Ê   sˆ   ø† ñð +/Ø*.ñ*à�t˜C‘y %¨¨S¨¡/°3Ð6Ñ7ð*ð �c˜3  iÐ/Ñ0ð*ð �e˜S $Ð&Ñ'ð	*ð
 �e˜S $Ð&Ñ'ð*ð 
÷*ö *r-   r   c                   ó<   • \ rS rSrSrSSS\SS4S jrS\4S	 jrS
rg)r   éÛ   zkThrown whenever an operation on a repository fails as it has uncommitted changes
that would be overwritten.Úrepor"   rx   r?   Nc                 ó   • Xl         X l        g rC   ©rŠ   rx   )rX   rŠ   rx   s      r.   r\   ÚRepositoryDirtyError.__init__ß   s   € ØŒ	Ø�r-   c                 ó>   • SU R                   < SU R                  < 3$ )Nz!Operation cannot be performed on z: rŒ   r`   s    r.   ra   ÚRepositoryDirtyError.__str__ã   s   � Ø<@¿I¼IÀtÇ|Ã|ÐTÐTr-   )rx   rŠ   )	r'   r(   r)   r*   r+   rP   r\   ra   r,   r%   r-   r.   r   r   Û   s/   † ñ"ð˜Vð ¨cð °dô ðU˜÷ Ur-   r   N))r+   Ú__all__Ú	gitdb.excr   r   r   r   r   r   r   r	   Ú
git.compatr   Úgit.utilr   Útypingr   r   r   r   r    Ú	git.typesr!   Úgit.repo.baser"   rN   r
   r   r   ÚOSErrorr   r   r   r   r   r   r   r   r   r   r   r%   r-   r.   Ú<module>r˜      sñ   ðñ 4ò€÷6	÷ 	ó 	õ #Ý /÷ ?Õ >å æÝ"ô
1ˆyô 1ôL ô LôEÐ$=ô Eô>�h ô >ôR˜(ô RôP˜ô Pô4
�8ô 4
ôn,˜ô ,ô
:�lô 
:ôC�Hô Cô<�ô ô
˜:ô ô
*˜ô *ô"	U˜8õ 	Ur-   