eclass/git-r3: Sync with Gentoo

It's from Gentoo commit b60c234d49ac880d249c5c457790f1233985ad3e.
This commit is contained in:
Flatcar Buildbot 2023-11-27 07:12:10 +00:00 committed by Krzesimir Nowak
parent f65a2aa96a
commit 83c968d250

View File

@ -120,6 +120,14 @@ fi
# usage.
: "${EGIT_LFS_CLONE_TYPE:=shallow}"
# @ECLASS_VARIABLE: EVCS_STORE_DIRS
# @OUTPUT_VARIABLE
# @DESCRIPTION:
# Record of names of all the repositories directories being cloned in the git3_src.
# This is useful in the case of ebuild that fetch multiple repos and
# it would be used by eclean to clean them up.
EVCS_STORE_DIRS=()
# @ECLASS_VARIABLE: EGIT3_STORE_DIR
# @USER_VARIABLE
# @DEFAULT_UNSET
@ -360,6 +368,8 @@ _git-r3_set_gitdir() {
GIT_DIR=${EGIT3_STORE_DIR}/${repo_name}
EVCS_STORE_DIRS+=( "${GIT_DIR}" )
if [[ ! -d ${EGIT3_STORE_DIR} && ! ${EVCS_OFFLINE} ]]; then
(
addwrite /