ó
    ‘óýj…  ã            	       óÄ   • S r SS/rSSKrSSKrSSKJr  SSKJr  SSKJ	r	  SS	K
Jr  \(       a  SS
K
Jr  SSKJr  SSKJr  SSSSS\\\S4      4S jrSSS\\-  SS4S jrg)zWorking with Git submodules.Úensure_submodule_placeholderÚiter_cached_submodulesé    N)ÚIterator)ÚTYPE_CHECKINGé   )Úiter_tree_contents)ÚS_ISGITLINK)ÚObjectID)ÚObjectContainer)ÚRepoÚstorer   Úroot_tree_idr
   Úreturnc              #   óö   #   • [        X5       Hf  nUR                  c   e[        UR                  5      (       d  M.  UR                  c   eUR                  c   eUR                  UR                  4v •  Mh     g7f)z›Iterate over cached submodules.

Args:
  store: Object store to iterate
  root_tree_id: SHA of root tree

Returns:
  Iterator over over (path, sha) tuples
N)r   Úmoder	   ÚpathÚsha)r   r   Úentrys      Ú</usr/local/lib/python3.13/site-packages/dulwich/submodule.pyr   r   +   sh   é € ô $ EÖ8ˆØ�z‰zÑ%Ð%Ð%Ü�u—z‘z×"Ó"Ø—:‘:Ñ)Ð)Ð)Ø—9‘9Ñ(Ð(Ð(Ø—*‘*˜eŸi™iÐ'Ô'ò 9ùs
   ‚6A9¼=A9Úrepor   Úsubmodule_pathc                 ó`  • SSK JnJn  [        U[        5      (       a  UR                  5       n[        U R                  [        5      (       a  U R                  OU R                  R                  5       nU" U/ U5        [        R                  R                  XA5      n [        R                  " U5      nUb-  [        R                  " UR                  5      (       a  U" U5      eUc  [        R                  " U5        [        R                  R                  US5      n[        R                  R!                  U5      (       dL  UR#                  S5      S-   nSU-  S-   U-   n	[%        US5       n
U
R'                  S	U	-   S
-   5        SSS5        gg! [         a    Sn Nèf = f! , (       d  f       g= f)a&  Create a submodule placeholder directory with .git file.

This creates the minimal structure needed for a submodule:
- The submodule directory
- A .git file pointing to the submodule's git directory

Args:
  repo: Parent repository
  submodule_path: Path to the submodule relative to repo root
r   )ÚInvalidPathErrorÚverify_leading_dirsNs   .gitó   /s   ../s   .git/modules/Úwbs   gitdir: ó   
)Úindexr   r   Ú
isinstanceÚstrÚencoder   ÚbytesÚosÚjoinÚlstatÚFileNotFoundErrorÚstatÚS_ISLNKÚst_modeÚmakedirsÚexistsÚcountÚopenÚwrite)r   r   r   r   Ú	repo_pathÚ	full_pathÚstÚgit_file_pathÚdepthÚrelative_git_dirÚfs              r   r   r   ?   s^  € ÷ =ô �.¤#×&Ñ&Ø'×.Ñ.Ó0ˆô (¨¯	©	´5×9Ñ9�—	’	¸t¿y¹y×?OÑ?OÓ?Q€Iñ
 ˜¨¨IÔ6ô —‘—‘˜YÓ7€IðÜ$&§H¢H¨YÓ$7ˆð 
�~œ$Ÿ,š, r§z¡z×2Ñ2Ù˜~Ó.Ð.ð 
�zÜ
�Š�IÔô —G‘G—L‘L ¨GÓ4€MÜ�7‰7�>‰>˜-×(Ñ(ð ×$Ñ$ TÓ*¨QÑ.ˆØ! E™>Ð,<Ñ<¸~ÑMÐä�- Ô&¨!Ø�G‰G�KÐ"2Ñ2°UÑ:Ô;÷ 'Ð&ð )øô ó ØŠðú÷$ 'Õ&ús   ÂF Å+FÆFÆFÆ
F-)Ú__doc__Ú__all__r#   r'   Úcollections.abcr   Útypingr   Úobject_storer   Úobjectsr	   r
   Úpackr   r   r   Útupler"   r   r    r   © ó    r   Ú<module>r@      sˆ   ðñ, #ð #Øð€ó
 
Û Ý $Ý  å ,Ý  æÝ!Ý%Ýð(Øð(Ø,6ð(àˆe�E˜:Ð%Ñ&Ñ'ô(ð(4<Ø
ð4<à˜%‘Kð4<ð 
õ4<r?   