§ |<ˆj4 ãó—ddlZddlmZddlmZddlmZddlZddlm Z m Z m Z m Z ddl mZe r$ddlmZdd lmZdd lmZdd lmZdd lmZdd lmZdZdedefd„Zdedefd„Zdddeddfd„Zde ddeddfd„ZGd„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 filez submodule "ú"©)rs úl/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/git/objects/submodule/util.pyrr"s€à ˜Ð Ð Ð Ð óÚsectioncó>—| ¦«}|dd…S)z>:return: name of the submodule as parsed from the section nameé éÿÿÿÿ)Ústrip)rs rrr's€à�mŠm‰oŒo€GØ �2�b�5Œ>ÐrÚreporÚpathrcóf—tj|tj |¦«¦«S)z!:return: New branch/head instance)ÚgitrÚ to_full_path)r#r$s rrr-s$€å Œ8�D�#œ(×/Ò/°Ñ5Ô5Ñ 6Ô 6Ð6rÚremotesrÚ branch_namercón—|D]!} |j|cS#t$rYŒwxYwtd|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 rrr2s`€àððˆð Ø”;˜{Ô+Ð +Ð +Ð +øÝð ð ð Ø ˆHð øøøõ $Ð$`ÐcnÑ$nÑ oÔ oÐos † • "¡"cóL‡—eZdZdZdededdfˆfd„ Zd d „Zd d „Zd ˆfd „ ZˆxZ S)raX 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ÚkwargsrNcór•—d|_d|_d|_tt|¦«j|i|¤ŽdS)NT)Ú_smrefÚ_indexÚ _auto_writeÚsuperrÚ__init__)Úselfr/r0Ú __class__s €rr6zSubmoduleConfigParser.__init__OsBø€Ø?CˆŒ ؈Œ ØˆÔØ3�Õ# TÑ*Ô*Ô3°TÐD¸VÐDÐDÐDÐDÐDrÚ submoduler có8—tj|¦«|_dS)z`Set this instance's submodule. It must be called before the first write operation beginsN)ÚweakrefÚrefr2)r7r9s rÚ set_submodulez#SubmoduleConfigParser.set_submoduleVs€õ”k )Ñ,Ô,ˆŒ ˆ ˆ rcó—|j€J‚t|jt¦«rJ‚| ¦«}|�M|j}|€ |jj}| |jg|j ¬¦«|  ¦«dSdS)z4Flush changes in our configuration file to the indexN)Úwrite) r2Ú isinstanceÚ_file_or_filesrr3r#ÚindexÚaddÚk_modules_filer4Ú _clear_cache)r7ÚsmrBs rÚflush_to_indexz$SubmoduleConfigParser.flush_to_index[sŒ€àŒ{Ð&Ð&Ð&å˜dÔ1µ7Ñ;Ô;Ð;Ð;Ð;à �[Š[‰]Œ]ˆØ ˆ>Ø”KˆE؈}Øœœ �à �IŠI�rÔ(Ð)°Ô1AˆIÑ BÔ BÐ BØ �OŠOÑ Ô Ð Ð Ð ð ˆ>rcó~•—tt|¦« ¦«}| ¦«|S)N)r5rr?rG)r7Úrvalr8s €rr?zSubmoduleConfigParser.writens6ø€ÝÕ0°$Ñ7Ô7×=Ò=Ñ?Ô?ˆØ ×ÒÑÔÐØˆ r)r9r rN)rN) Ú__name__Ú __module__Ú __qualname__Ú__doc__rr6r=rGr?Ú __classcell__)r8s@rrrDs«ø€€€€€ðððE˜cðE¨SðE°TðEðEðEðEðEðEð-ð-ð-ð-ð ð ð ð ð&ðððððððððrr)r&Úgit.excrÚ git.configrÚiorr;Útypingrrrr Ú git.typesr Úbaser r Úgit.reporÚgit.refsrrrÚ__all__ÚstrrrrrrrrrúrYs×ðØ € € € Ø-Ð-Ð-Ð-Ð-Ð-Ø&Ð&Ð&Ð&Ð&Ð&ØÐÐÐÐÐØ€€€ð 7Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6àÐÐÐÐÐàð)ØÐÐÐÐÐØ%Ð%Ð%Ð%Ð%Ð%ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ(Ð(Ð(Ð(Ð(Ð(ð €ð!�Sð!˜Sð!ð!ð!ð!ð �Sð˜Sððððð 7�ð7˜xð7¨Fð7ð7ð7ð7ð p h¨xÔ&8ð pÀsð pÐO`ð pð pð pð pð$-ð-ð-ð-ð-˜Oñ-ô-ð-ð-ð-r