1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

graphics/oidn: Prevent execution of git hooks from $DISTDIR during fetch

PR:		276031
This commit is contained in:
Chad Jacob Milios 2024-07-13 11:29:16 -07:00 committed by Yuri Victorovich
parent b1a4d610d3
commit 23022411d3

View File

@ -64,7 +64,7 @@ pre-fetch:
${MKDIR} ${WRKDIR}; \
HOME=${WRKDIR}; \
git config --global filter.lfs.smudge "git-lfs smudge -- %f" && \
GIT_CLONE_PROTECTION_ACTIVE=false git clone -q ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \
GIT_CLONE_PROTECTION_ACTIVE=false git clone -nq ${WEIGHTS_GIT_URL} ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && \
(cd ${PORTNAME}-weights-${WEIGHTS_GIT_HASH} && git reset -q --hard ${WEIGHTS_GIT_HASH} && ${RM} -r .git) && \
${RM} -r ${WRKDIR} \
) && \