[sysadmin/repo-management] hooks: prevent people to push on locale folder directly

Johnny Jazeix <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 950d7a7719cd7294812ff03718daf3028f41dc31 by Johnny Jazeix.
Committed on 22/07/2026 at 08:47.
Pushed by bcooksley into branch 'master'.

prevent people to push on locale folder directly

to avoid translation update for some websites: https://invent.kde.org/documentation/kstars-docs-kde-org/-/merge_requests/29/diffs

M  +2    -1    hooks/invent.pre-receive

https://invent.kde.org/sysadmin/repo-management/-/commit/950d7a7719cd7294812ff03718daf3028f41dc31

diff --git a/hooks/invent.pre-receive b/hooks/invent.pre-receive
index 5d0d9f2..9bb2e94 100755
--- a/hooks/invent.pre-receive
+++ b/hooks/invent.pre-receive
@@ -142,7 +142,8 @@ translation_mirror_author_emails = ["[email protected]", "[email protected]"]
 # Files matching these patterns will be considered to be in translation directories and thus only modifiable by the above people
 translation_file_rules = [
     '^po/.*',
-    '^poqm/.*'
+    '^poqm/.*',
+    '^locale/.*'
 ]
 # These commits are accepted for translation changes
 translation_known_bad_commits = [
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.