]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3857] Change amend-gitattributes.sh to not look at the root .gitattributes file
authorAndrei Pavel <andrei@isc.org>
Wed, 28 May 2025 11:59:34 +0000 (14:59 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 30 May 2025 10:16:23 +0000 (10:16 +0000)
tools/amend-gitattributes.sh

index d9552aa5dcaca9b94252b16d7bf9a983e6ed6b4b..b6cc047b4707f904ad17e0e81d6c350f0de4187d 100755 (executable)
@@ -14,7 +14,7 @@ root_path=$(cd "$(dirname "${0}")/.." && pwd)
 cd "${root_path}"
 
 # Write to .gitattributes.
-find . -type f -name '.gitattributes' -exec rm -f {} \;
+find . -mindepth 2 -type f -name '.gitattributes' -exec rm -f {} \;
 for i in $(./tools/print-generated-files.sh); do
     # We need to be lenient because we call this script in premium too. Files might not exist.
     if test ! -f "${i}"; then