§ |<ˆj4 ã ó — d dl Z d dlmZ d dlmZ d dlmZ d dlZd dlm Z m Z mZmZ d dl mZ er$ddlmZ d d lmZ d d lmZ d dlmZ d dl mZ d d lmZ dZdedefd„Zdedefd„Zdddeddfd„Zde d deddfd„Z G d„ de¦ « ZdS ) é N)ÚInvalidGitRepositoryError)ÚGitConfigParser)ÚBytesIO)ÚAnyÚSequenceÚ TYPE_CHECKINGÚUnion)ÚPathLikeé )Ú Submodule)Ú ReferenceType)ÚRepo)ÚHead)ÚRemote)ÚRemoteReference)Ú sm_sectionÚsm_nameÚmkheadÚfind_first_remote_branchÚSubmoduleConfigParserÚnameÚreturnc ó — d| › d�S )z=:return: section title used in .gitmodules configuration filezsubmodule "ú"© )r s úl/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/git/objects/submodule/util.pyr r " s € à ˜Ð Ð Ð Ð ó Úsectionc ó> — | ¦ « } | dd… S )z>:return: name of the submodule as parsed from the section nameé éÿÿÿÿ)Ústrip)r s r r r ' s € à�mŠm‰oŒo€GØ�2�b�5Œ>Ðr Úrepor Úpathr c óf — t j | t j |¦ « ¦ « S )z!:return: New branch/head instance)Úgitr Úto_full_path)r# r$ s r r r - s$ € åŒ8�D�#œ(×/Ò/°Ñ5Ô5Ñ6Ô6Ð6r Úremotesr Úbranch_namer c ón — | D ]!} |j | c S # t $ r Y Œw xY wt d|z ¦ « ‚)z_Find the remote branch matching the name of the given branch or raise InvalidGitRepositoryErrorz:Didn't find remote branch '%r' in any of the given remotes)ÚrefsÚ IndexErrorr )r( r) Úremotes r r r 2 s` € àð ð ˆð Ø”;˜{Ô+Ð+Ð+Ð+øÝð ð ð ØˆHð øøøõ $Ð$`ÐcnÑ$nÑ oÔ oÐos †• "¡"c óL ‡ — e Zd ZdZdededdfˆ fd„Zdd „Zd d „Zd ˆ fd„Zˆ xZ S )r aX Catches calls to _write, and updates the .gitmodules blob in the index with the new data, if we have written into a stream. Otherwise it will add the local file to the index to make it correspond with the working tree. Additionally, the cache must be cleared Please note that no mutating method will work in bare mode ÚargsÚkwargsr Nc ór •— d | _ d | _ d| _ t t | ¦ « j |i |¤Ž d S )NT)Ú_smrefÚ_indexÚ_auto_writeÚsuperr Ú__init__)Úselfr/ r0 Ú __class__s €r r6 zSubmoduleConfigParser.__init__O sB ø€ Ø?CˆŒØˆŒØˆÔØ3�Õ# TÑ*Ô*Ô3°TÐD¸VÐDÐDÐDÐDÐDr Ú submoduler c ó8 — t j |¦ « | _ dS )z`Set this instance's submodule. It must be called before the first write operation beginsN)ÚweakrefÚrefr2 )r7 r9 s r Ú set_submodulez#SubmoduleConfigParser.set_submoduleV s € õ ”k )Ñ,Ô,ˆŒˆˆr c ó — | j €J ‚t | j t ¦ « rJ ‚| ¦ « }|�M| j }|€|j j }| |j g| j ¬¦ « | ¦ « dS dS )z4Flush changes in our configuration file to the indexN)Úwrite)r2 Ú isinstanceÚ_file_or_filesr r3 r# ÚindexÚaddÚk_modules_filer4 Ú_clear_cache)r7 ÚsmrB s r Úflush_to_indexz$SubmoduleConfigParser.flush_to_index[ sŒ € àŒ{Ð&Ð&Ð&å˜dÔ1µ7Ñ;Ô;Ð;Ð;Ð;à �[Š[‰]Œ]ˆØ ˆ>Ø”KˆE؈}Øœœ �à�IŠI�rÔ(Ð)°Ô1AˆIÑBÔBÐBØ�OŠOÑÔÐÐÐð ˆ>r c ó~ •— t t | ¦ « ¦ « }| ¦ « |S )N)r5 r r? rG )r7 Úrvalr8 s €r r? zSubmoduleConfigParser.writen s6 ø€ ÝÕ0°$Ñ7Ô7×=Ò=Ñ?Ô?ˆØ×ÒÑÔÐØˆr )r9 r r N)r N) Ú__name__Ú __module__Ú__qualname__Ú__doc__r r6 r= rG r? Ú __classcell__)r8 s @r r r D s« ø€ € € € € ðð ðE˜cð E¨Sð E°Tð Eð Eð Eð Eð Eð Eð-ð -ð -ð -ð ð ð ð ð&ð ð ð ð ð ð ð ð ð r r )r&