From 499ebb2ce365d9358c1d1e51f79288d9a2e877dc Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 24 Aug 2026 00:19:31 +0100 Subject: [PATCH] git-r3.eclass: make addwrite effective We moved where we set the default value for EGIT3_STORE_DIR, so at the point `addwrite` is called, it isn't effective. Move it too. Closes: https://bugs.gentoo.org/981310 Fixes: eae4d76cd2c21c670cb45fca680b1422e7292c13 Signed-off-by: Sam James --- eclass/git-r3.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index cd017977c7ddb..4af0f90ef702d 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -369,7 +369,6 @@ _git-r3_create_gitdir() { [[ ${?} -ne 0 ]] && return 1 local object_format=$(_git-r3_get_object_format "${head_ref[0]}") - addwrite "${EGIT3_STORE_DIR}" local saved_umask if [[ ${EVCS_UMASK} ]]; then saved_umask=$(umask) @@ -427,6 +426,8 @@ _git-r3_set_gitdir() { local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}} : "${EGIT3_STORE_DIR:=${distdir}/git3-src}" + addwrite "${EGIT3_STORE_DIR}" + GIT_DIR=${EGIT3_STORE_DIR}/${repo_name} }