From a7c62c012bc7eecf4a66e0662b0ad9186199acb2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 15:05:20 +0100 Subject: [PATCH] git: Hook examples should not be executeable Signed-off-by: Stefan Schantl --- git/git.nm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git/git.nm b/git/git.nm index b3b5f789b..adb785081 100644 --- a/git/git.nm +++ b/git/git.nm @@ -5,7 +5,7 @@ name = git version = 2.38.1 -release = 3 +release = 4 groups = Development/Tools url = http://git-scm.com/ @@ -96,6 +96,10 @@ build rm -rvf %{BUILDROOT}/usr/lib/git-core/*p4* rm -rvf %{BUILDROOT}/usr/lib/git-core/mergetools/p4* rm -rvf %{BUILDROOT}%{mandir}/man1/*p4* + + # Fix file permissions of the hook examples. + find %{BUILDROOT}%{datadir}/git-core/ -type f -iname "*.sample" \ + -exec chmod 644 {} \; end end -- 2.47.3