git: 23022411d3fd - main - graphics/oidn: Prevent execution of git hooks from $DISTDIR during fetch

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 13 Jul 2024 18:33:19 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23022411d3fd9b38ed39506842fe9c52408cb6b2

commit 23022411d3fd9b38ed39506842fe9c52408cb6b2
Author:     Chad Jacob Milios <milios@ccsys.com>
AuthorDate: 2024-07-13 18:29:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-13 18:32:28 +0000

    graphics/oidn: Prevent execution of git hooks from $DISTDIR during fetch
    
    PR:             276031
---
 graphics/oidn/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphics/oidn/Makefile b/graphics/oidn/Makefile
index d663b9ee53fa..73770e1e4986 100644
--- a/graphics/oidn/Makefile
+++ b/graphics/oidn/Makefile
@@ -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} \
 		) && \