Ë
    S>{i)  ã                  ó@   — d Z ddlmZ ddlZddlmZ dd„Zd	d„Zd
d„Zy)zjGit utilities, adopted from mypy's git utilities (https://github.com/python/mypy/blob/master/mypy/git.py).é    )ÚannotationsN)ÚPathc                ó@   — | j                  d«      j                  «       S )z3Is the given directory version-controlled with git?z.git)ÚjoinpathÚexists©Údirs    úU/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pydantic/_internal/_git.pyÚis_git_repor   	   s   € à�<‰<˜Ó×&Ñ&Ó(Ð(ó    c                 óz   — 	 t        j                  ddg«       y# t         j                  $ r Y yt        $ r Y yw xY w)zCan we run the git executable?Úgitz--helpTF)Ú
subprocessÚcheck_outputÚCalledProcessErrorÚOSError© r   r
   Úhave_gitr      s@   € ðÜ×Ñ ¨Ð 1Ô2ØøÜ×(Ñ(ò ÙÜò Ùðús   ‚ š:¯:¹:c                ón   — t        j                  g d¢| ¬«      j                  d«      j                  «       S )z.Get the SHA-1 of the HEAD of a git repository.)r   z	rev-parsez--shortÚHEAD)Úcwdzutf-8)r   r   ÚdecodeÚstripr   s    r
   Úgit_revisionr      s,   € ä×"Ñ"Ò#JÐPSÔT×[Ñ[Ð\cÓd×jÑjÓlÐlr   )r	   r   ÚreturnÚbool)r   r   )r	   r   r   Ústr)	Ú__doc__Ú
__future__r   r   Úpathlibr   r   r   r   r   r   r
   ú<module>r!      s!   ðÙ på "ã Ý ó)ó
ômr   