tyrael                                   Sun, 19 May 2013 08:32:25 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=330285

Log:
allowing some people to commit to already migrated dirs

Changed paths:
    U   SVNROOT/pre-commit

Modified: SVNROOT/pre-commit
===================================================================
--- SVNROOT/pre-commit  2013-05-19 08:09:14 UTC (rev 330284)
+++ SVNROOT/pre-commit  2013-05-19 08:32:25 UTC (rev 330285)
@@ -2,6 +2,7 @@
 <?php

 $migrated_repositories = array('systems/', 'web/', 'phd/', 'php/php-src/',  
'php/phpruntests/', 'gtk/php-gtk');
+$migrate_admins = array('dsp', 'johannes', 'tyrael');
 // 
-----------------------------------------------------------------------------------------------------------------------------
 // Include
 require dirname(__FILE__) . '/hook-common.inc.php';
@@ -36,11 +37,14 @@
         fail("Commits to archived modules are not allowed.\n");
     }

-    foreach($migrated_repositories as $reponame) {
-        if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) {
-            fail("This module now uses git. http://git.php.net\n";);
+    if (!in_array($commit_info['author'], $migrate_admins)) {
+        foreach($migrated_repositories as $reponame) {
+            if (strncmp($changed_path, $reponame, strlen($reponame)) === 0) {
+                fail("This module now uses git. http://git.php.net\n";);
+            }
         }
     }
+
 /* Tags checks disabled. Too many special cases, not enough people making this
     mistake to make the extra work worth it.


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to