Sw,^$ : d dl Z d dlmZ dZ G d de ZdS ) N)
CompoundDB)ReferenceDBc B e Zd ZdZdZ fdZ fdZd Zd fd Z xZ S ) r z7A database consisting of database referred to in a fileNc V t || _ d S N)super__init__ _ref_file)selfref_file __class__s ^/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/gitdb/db/ref.pyr zReferenceDB.__init__ s$
! c |dk r)t | _ | d S t | d S )N_dbs)listr _update_dbs_from_ref_filer _set_cache_)r attrr
s r r zReferenceDB._set_cache_ sM 6>>DI**,,,,,GG%%%%%r c
| j }|ddlm} |}t
t j | j dd 5 }d |D
d d d n# 1 swxY w Y n# t $ r Y nw xY wt
}d | j D }||z
D ]E}t | j d d D ]&\ }}| |k r | j |= &'Ft ||z
fd } | D ]a} || }t |t r| | j | R# t" $ r Y ^w xY wd S )
Nr )GitDBrzutf-8)encodingc 6 g | ]}| S )strip).0ls r