R dZddlmZmZddlmZmZddlmZddlm Z ddl m Z ddl m Z ddlmZdd lmZerdd lmZd ZGd d e ZdS)zBModule with our own gitdb implementation - it uses the git command) bin_to_hex hex_to_bin)OInfoOStream)GitDB) LooseObjectDB) BadObject)GitCommandError) TYPE_CHECKING)PathLike)Git)GitCmdObjectDBrc`eZdZdZdeddddffd Zdedefd Zdede fd Z d e defd Z xZ S) ra=A database representing the default git object store, which includes loose objects, pack files and an alternates file It will create objects only in the loose object database. :note: for now, we use the git command to do all the lookup, just until he have packs and the other implementations root_pathgitr returnNcftt||||_dS)z8Initialize this instance with the root and a git commandN)superr__init___git)selfrr __class__s /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/db.pyrzGitCmdObjectDB.__init__"s, nd##,,Y777 binshac|jt|\}}}tt |||S)N)rget_object_headerrrr)rrhexshatypenamesizes rinfozGitCmdObjectDB.info's@!%!'R'R $FIuf%% %, 3 3 3N++ 2 3s,/AAA)__name__ __module__ __qualname____doc__r rbytesrr!rr$strr+ __classcell__)rs@rrrs(4 959U9999CUCwCCCC 3# 3% 3 3 3 3 3 3 3 3rrN)r/git.utilrr gitdb.baserrgitdb.dbrr gitdb.excr git.excr typingr git.typesr git.cmdr __all__rrrr=sHH++++++++%%%%%%%%""""""######!  &$3$3$3$3$3]$3$3$3$3$3r