[sysadmin-bin] Revert 95e59367cdce8038ea5cd8770f4f577bb8acfde6, po-properties is specific to a few modules, thus no



commit 837ebe2c6f3a6603aa15d9e21e76e41e507727fa
Author: Andrea Veri <av gnome org>
Date:   Wed Feb 5 21:58:56 2014 +0100

    Revert 95e59367cdce8038ea5cd8770f4f577bb8acfde6, po-properties is specific to a few modules, thus not 
global, make sure the relevant repositories do have the needed flag on git.config accordingly

 git/pre-receive-check-translations |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/git/pre-receive-check-translations b/git/pre-receive-check-translations
index 1bc5529..63458a6 100755
--- a/git/pre-receive-check-translations
+++ b/git/pre-receive-check-translations
@@ -6,7 +6,6 @@
 # The per-repository git config keys
 #
 #  hooks.po-directories (default 'po')
-#  hooks.additional-po-directories (default 'po-properties')
 #  hooks.help-directories (default 'help')
 #
 # Define the directories that have po-file or translated help structure.
@@ -45,7 +44,6 @@ def check_translations(oldrev, newrev, refname):
         error("translations user cannot delete branches")
 
     po_directories = config_dirs('hooks.po-directories', 'po')
-    additional_po_directories = config_dirs('hooks.additional-po-directories', 'po-properties')
     help_directories = config_dirs('hooks.help-directories', 'help')
 
     # Iterate through all changed files.  Passing -z to git diff-tree
@@ -71,19 +69,6 @@ def check_translations(oldrev, newrev, refname):
             if relpath == 'LINGUAS':
                 ok = True
 
-        for dir in additional_po_directories:
-            relpath = relative_path(path, dir)
-            if relpath is None:
-                continue
-
-            # Arbitrary change to a .po file
-            if re.match(r'^[a-zA-Z _]+ po$', relpath):
-                ok = True
-
-            # Arbitrary change to LINGUAS
-            if relpath == 'LINGUAS':
-                ok = True
-
         for dir in help_directories:
             relpath = relative_path(path, dir)
             if relpath is None:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]