R d Z ddlmZmZ ddlmZmZ ddlmZ ddlm Z ddl mZ ddlm Z ddlmZ dd lmZ erdd lmZ dZ G d 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)GitCmdObjectDBr c ` e Zd ZdZdeddddf fdZdedefd Zdede fd Z dedefdZ xZ S ) r a= 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 returnNc f t t | | || _ dS )z8Initialize this instance with the root and a git commandN)superr __init___git)selfr r __class__s X/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/git/db.pyr zGitCmdObjectDB.__init__" s, nd##,,Y777 binshac | j t | \ }}}t t | || S )N)r get_object_headerr r r )r r hexshatypenamesizes r infozGitCmdObjectDB.info' s@ !%!