Ë
    &V.j  ã                  ó<   — d Z ddlmZ ddlZddl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).é    )ÚannotationsNc                ó|   — t         j                  j                  t         j                  j                  | d«      «      S )z3Is the given directory version-controlled with git?z.git)ÚosÚpathÚexistsÚjoin©Údirs    úYC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\pydantic/_internal/_git.pyÚis_git_repor   	   s$   € ä�7‰7�>‰>œ"Ÿ'™'Ÿ,™, s¨FÓ3Ó4Ð4ó    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
   ÚstrÚreturnÚbool)r   r   )r
   r   r   r   )Ú__doc__Ú
__future__r   r   r   r   r   r   r   r   r   Ú<module>r!      s!   ðÙ på "ã 	Û ó5ó
ômr   